Tables
Search the component library

Tables

v1.0.0
Download UI Kit v1.9.0

Provides standard designs and layouts for static (i.e. CSS-only) tables.

Download UI Kit v1.9.0

Usage Guidelines

Every instance of a static table should use this component. For more complex tables with sorting, filtering, etc. see the Interactive Table component.

Features

  • Standard and small sizes
  • Hoverable rows
  • Integration with inputs and buttons
  • Secondary data line within each cell
  • Three responsive strategies

Basic Table

The basic table does what you would expect, presenting data in a static tabular format with headers.

Columns can be left, center, or right aligned.

Multiline cell content should be avoided where possible, but is allowed if necessary. Content should be top aligned.

Note that headers are required for accessibility compliance.

Small Table

A more compact table for situations where the table needs to fit in a smaller space or a large amount of data needs to be presented.

Multiline cell content should be avoided where possible, but is allowed if necessary. Content should be top aligned.

Advanced Features

There are a couple special features available for the basic table (not the small size).

Inputs and Buttons

Forms can include smaller form inputs or buttons if necessary.

Secondary Row

Cells may contain a secondary line of related data below the main entry.

This option should not be used if any of the cells wrap to two or more lines on content.

Responsive

There are several strategies for ensuring a table works at each breakpoint.

Removing columns

If you determine that certain fields in your table are optional in nature, you can simply remove them to reduce the overall table width until it fits in mobile viewports.

Combining fields

Depending on the type of information presented, a simple way to fit tables into a smaller viewport is combining multiple columns into one. For example, dedicated First and Last name columns can be joined under ‘Name’.

Secondary row

Less important information may be moved from a dedicated column to the secondary row option.

This method should not be used if any cell might wrap to two or more lines.

Switching designs

For larger, more complex tables with a lot of non-optional data it may be necessary to change from using a table to some other display strategy in the mobile view. For example, you may adopt a list view where each item can be opened up to view its complete dataset.

Redlines

Basic Table

Header
Rows
Secondary Row
Inputs/Buttons
  • Inputs and buttons are vertically centered in the row
  • They don’t push out the 14px vertical padding, however
Available Styles Reference As (How do I use this?)
Basic Table [](/design/c/tables/v1.0.0/#rd-basic-table)
Secondary Row [](/design/c/tables/v1.0.0/#rd-secondary-row)

Small Table

Header
  • 12px horizontal padding
  • 10px vertical padding
  • Otherwise same as basic table
Rows
Available Styles Reference As (How do I use this?)
Small Table [](/design/c/tables/v1.0.0/#rd-small-table)

Changelog

1.0.0

Initial Version