DataList

Examples

Data List Simple

  • Primary content
    Secondary content
  • Second list item title
    Secondary content
Copied to clipboard

Data List Checkboxes, Actions and Additional Cells

  • Primary content
    Secondary content
  • Primary content - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
    Secondary content
Copied to clipboard

Data List Expandable

  • Primary content
    link
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • Primary content
    Lorem ipsum dolor sit amet.
Copied to clipboard

Data List Width Modifiers

Default fitting - example 1

  • default

    Lorem ipsum dolor sit amet, consectetur adipisicing elit.

    default

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Flex modifiers - example 2

  • width 2

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.

    width 4

    Lorem ipsum dolor sit amet.

Flex modifiers - example 3

  • width 5

    Lorem ipsum dolor sit amet, consectetur adipisicing elit.

    width 2

    Lorem ipsum dolor sit amet, consectetur adipisicing elit.

    default

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Copied to clipboard

DataList Props

The DataList component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
nullContent rendered inside the DataList list
className
string
''Additional classes added to the DataList list
aria-label
string
Adds accessible text to the DataList list

DataListItem Props

The DataListItem component accepts the following props.

NameTypeRequiredDefaultDescription
isExpanded
bool
falseFlag to show if the expanded content of the DataList item is visible
children
node
nullContent rendered inside the DataList item
className
string
''Additional classes added to the DataList item
aria-labelledby
string
Adds accessible text to the DataList item

DataListCell Props

The DataListCell component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
nullContent rendered inside the DataList cell
className
string
''Additional classes added to the DataList cell
width
enum: 1, 2, 3, 4, 5
1Width (from 1-5) to the DataList cell

DataListCheck Props

The DataListCheck component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the DataList item checkbox
isValid
bool
trueFlag to show if the DataList checkbox selection is valid or invalid
isDisabled
bool
falseFlag to show if the DataList checkbox is disabled
isChecked
bool
nullFlag to show if the DataList checkbox is checked
onChange
func
() => undefinedA callback for when the DataList checkbox selection changes
aria-labelledby
string
Aria-labelledby of the DataList checkbox

DataListAction Props

The DataListAction component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
nullContent rendered inside the DataList list
className
string
''Additional classes added to the DataList list
id
string
Identify the DataList toggle number
aria-labelledby
string
Adds accessible text to the DataList item
aria-label
string
Adds accessible text to the DataList item

DataListContent Props

The DataListContent component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
Content rendered inside the DataList item
className
string
''Additional classes added to the DataList cell
isHidden
bool
falseFlag to show if the expanded content of the DataList item is visible
aria-label
string
Adds accessible text to the DataList toggle

DataListToggle Props

The DataListToggle component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the DataList cell
isExpanded
bool
falseFlag to show if the expanded content of the DataList item is visible
id
string
Identify the DataList toggle number
aria-labelledby
string
Adds accessible text to the DataList toggle
aria-label
string
Adds accessible text to the DataList toggle