Skip to content

Table and datatable

Data tables efficiently organize and display large volumes of data in a structured grid format, making it easy for users to scan, compare, and analyze information.

Usage

Use a table to organize information in columns and rows.

Tables are ideal for text-based content, data, and sections where information needs to be easily and quickly comprehended in an organized manner.

Table

When to use

  • To view or process a large amount of information at once.
  • To make it easy to compare data points between rows or columns.
  • When data is easy to understand in a flat hierarchy.

Best practices

  • Order rows intuitively.
  • Minimize the number of columns.
  • Keep column headers short. Use concise labels for clarity.
  • Shorten data to make scanning easier.
  • Left-align text and right-align numeric values. Don’t use center alignment.
  • Use hyphen (-) to represent empty values.
  • Use empty state to represent an empty table.
  • Don't use expandable rows with more than 1 levels.
  • When possible, avoid repeating the title in every cell of a given column.
  • Use skeleton to represent the loading state.

Except where otherwise noted, content on this site is licensed under MIT License.