Skip to content

Table

Edit on GitHub

Show structured data in rows and columns, with optional sorting, row selection, pagination and bulk actions.

@volvo-cars/css v3.3.1@volvo-cars/react-table v0.4.0

Products need different things from a table, so the design system gives you styled parts instead of one fixed component. Combine them with the TanStack Table features you need.

  • Use odd:bg-secondary for a striped table.
  • Use hover:bg-primary-subtle to highlight the row under the pointer.
  • Use selected:bg-accent-blue-medium to highlight selected rows.

Use the action bar to apply the same action to several rows at once. Show it when one or more rows are selected. Show up to three actions in the bar, and put the rest in its menu.

Show skeleton placeholders in the cells while the data loads.

For server-side sorting and pagination, see the TanStack guides for sorting and pagination.

See the table in Figma.