Data Table
Data Table
Usage
Table is used to organize and display information from a data set.
Row Component Type
With Label
label
Text ContentWithout Label
Text Content
Row Component Function type
Without Label
Text Content
Text Content
Text Content
Label
Avatar Group
Button
Tag Label
Label
Checkbox
Radio
Avatar
Text Content Text Content
Text Field
Toggle
Icon
Table Style
Flexible Table Style
Label
TextLabel
Text Label
Label
Label
Label
TextLabel
Text Label
Label
Label
Static Table Style
Label
Label
Label
Label
Samuel
Samuel
Label
Jonathan
Jonathan
Label
Ranthi
Ranthi
Label
Draggable Table Style
Label
Label
Label
Label
Samuel
Samuel
Label
Jonathan
Jonathan
Label
Ranthi
Ranthi
Label
Pattern Rule
Best Practice
- Show values across multiple categories and measures.
- Allow for filtering and ordering when comparison is not a priority.
- Help merchants visualize and scan many values from an entire data set.
- Help merchants find other values in the data hierarchy through use of links.
- Minimize clutter by only including values that supports the data’s purpose.
- Include a summary row to surface the column totals.
- Not include calculations within the summary row.
- Wrap instead of truncate content. This is because if row titles start with the same word, they’ll all appear the same when truncated.
- Not to be used for an actionable list of items that link to details pages. For this functionality
Do
- Use when you need to display tabular data in a view.
- Use a table element directly within the component.
Don’t
- Don’t use to display list data.
- Don’t use to display basic key and value pairs, consider a description list instead.
- Don’t use tables for layout.
- Don't use a primary button in every row of a table.