Skip to content

Data Table

A table of records that can be sorted, selected, or shown empty or loading.

Data2 variants8 statesLight + DarkWide · Medium · Compactv1.0
Components in the library
TrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
Live preview · click to try it

Variants

2 named variants. Layer names match the names below.

Components in the library
TrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
ComfortableData Table / Comfortable
Components in the library
TrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
CompactData Table / Compact

States

Components in the library
SelectTrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
Data Table / Default
Components in the library
TrayVariants
ButtonActions12
Form FieldInputs6
Hero trayHome3
ModalOverlays4
Data Table / Sorted
Components in the library
SelectTrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
Data Table / Selected

No records in this tray.

Data Table / Empty

Loading records…

Data Table / Loading

The records could not be loaded.

Data Table / Error
Components in the library
SelectTrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
Data Table / Disabled
Components in the library
SelectTrayVariants
Hero trayHome3
ButtonActions12
Form FieldInputs6
ModalOverlays4
Data Table / Focus

Usage

Do

  • Lists of records a person can scan, sort or select.

Don't

  • Layout for a few facts; use Stat Block or a card.

Properties

PropertyType or optionsDefault
VariantComfortable · CompactComfortable
RowsArray of recordsSample trays
SelectableBooleanOn
SortColumn key or noneName

Styles it uses

Surface/TileSurface/RaisedAccent/SoftInk/PrimaryInk/SecondaryLine/RuleState/Focus

Text: Table · Label · Data Mono

Accessibility

  • Header buttons announce sort direction.
  • Selected rows use a checkbox with a visible 3px State/Focus ring.
  • Empty and loading states are text, not colour alone.

Create a free website with Framer, the website builder loved by startups, designers and agencies.