Tables

Low-code configurable 8.6

Tables display tabular data or compare data both vertically and horizontally. Tables rely on a combination of data elements that map to corresponding column objects.

Loading

If an API is in progress, or data is being fetched elsewhere, the loading and loadingMessage props are great tools for rendering an indeterminate progress component within the table.

Empty content

The table component can determine whether the data provided is empty. If this occurs, you can customize a message that will display centered within the table by passing the emptyContent prop.

Render functions

In the examples above, the columns object is composed with a simple string value for the renderer attribute. This is a basic approach to map your data to the corresponding columns. The data keys must match the column renderer values. However, you can customize the styling of the data within rows by passing functions to the column renderer. These functions must return React fragments.

Hover

If you intend for your table to have interactive actions within the rows, you should enable the hoverHighlight prop.