EQTY Lab Equality

Table

Table with sizes and variants

View as Markdown

Content Options

Unclickable

Clickable

With Actions

Column items with custom component

Empty State

When rows is empty and emptyState is provided, the table keeps column headers visible and renders the empty state content spanning all columns.

Empty State with Custom Component

The emptyState prop accepts any ReactNode, so you can pass a custom component like EmptyTableState.

Style Options

With Border

Elevations

Sunken

Base (default)

Raised

Overlay

Floating

Elevations With Border

Sunken

Base (default)

Raised

Overlay

Floating

Props

NameDescriptionTypeDefaultRequired
columnsColumn definitions with key, content, and optional classNameTableColumn[]
rowsRow data with key, cells, and optional onClick/classNameTableRowData[]
borderAdds a border and rounded corners around the tablebooleanfalse
elevationControls the shadow and border elevation levelsunken, base, raised, overlay, floatingbase
emptyStateContent rendered when rows is empty, spanning all columnsReactNode