Table

A set of composable components to represent tabular data.

Import the component and piece the parts together.

Table.Content

defaultValue

string

layout

autofixed

value

string

Also supports MarginProps: `m`, `mb`, `ml`, `mr`, `mt`, `mx`, `my`

Table.Row

align

centerendstartbaseline

value

string

Table.ColumnHeader

justify

centerendstart

maxWidth

Responsive<string>

Sets the CSS **max-width** property. Supports CSS strings and responsive objects.

minWidth

Responsive<string>

Sets the CSS **min-width** property. Supports CSS strings and responsive objects.

p

1234056789

Sets the CSS **padding** property. Supports space scale values, CSS strings, and responsive objects.

pb

1234056789

Sets the CSS **padding-bottom** property. Supports space scale values, CSS strings, and responsive objects.

pl

1234056789

Sets the CSS **padding-left** property. Supports space scale values, CSS strings, and responsive objects.

pr

1234056789

Sets the CSS **padding-right** property. Supports space scale values, CSS strings, and responsive objects.

pt

1234056789

Sets the CSS **padding-top** property. Supports space scale values, CSS strings, and responsive objects.

px

1234056789

Sets the CSS **padding-left** and **padding-right** properties. Supports space scale values, CSS strings, and responsive objects.

py

1234056789

Sets the CSS **padding-top** and **padding-bottom** properties. Supports space scale values, CSS strings, and responsive objects.

width

Responsive<string>

Sets the CSS **width** property. Supports CSS strings and responsive objects.

Table.RowHeader

justify

centerendstart

maxWidth

Responsive<string>

Sets the CSS **max-width** property. Supports CSS strings and responsive objects.

minWidth

Responsive<string>

Sets the CSS **min-width** property. Supports CSS strings and responsive objects.

p

1234056789

Sets the CSS **padding** property. Supports space scale values, CSS strings, and responsive objects.

pb

1234056789

Sets the CSS **padding-bottom** property. Supports space scale values, CSS strings, and responsive objects.

pl

1234056789

Sets the CSS **padding-left** property. Supports space scale values, CSS strings, and responsive objects.

pr

1234056789

Sets the CSS **padding-right** property. Supports space scale values, CSS strings, and responsive objects.

pt

1234056789

Sets the CSS **padding-top** property. Supports space scale values, CSS strings, and responsive objects.

px

1234056789

Sets the CSS **padding-left** and **padding-right** properties. Supports space scale values, CSS strings, and responsive objects.

py

1234056789

Sets the CSS **padding-top** and **padding-bottom** properties. Supports space scale values, CSS strings, and responsive objects.

width

Responsive<string>

Sets the CSS **width** property. Supports CSS strings and responsive objects.

Table.Cell

justify

centerendstart

maxWidth

Responsive<string>

Sets the CSS **max-width** property. Supports CSS strings and responsive objects.

minWidth

Responsive<string>

Sets the CSS **min-width** property. Supports CSS strings and responsive objects.

p

1234056789

Sets the CSS **padding** property. Supports space scale values, CSS strings, and responsive objects.

pb

1234056789

Sets the CSS **padding-bottom** property. Supports space scale values, CSS strings, and responsive objects.

pl

1234056789

Sets the CSS **padding-left** property. Supports space scale values, CSS strings, and responsive objects.

pr

1234056789

Sets the CSS **padding-right** property. Supports space scale values, CSS strings, and responsive objects.

pt

1234056789

Sets the CSS **padding-top** property. Supports space scale values, CSS strings, and responsive objects.

px

1234056789

Sets the CSS **padding-left** and **padding-right** properties. Supports space scale values, CSS strings, and responsive objects.

py

1234056789

Sets the CSS **padding-top** and **padding-bottom** properties. Supports space scale values, CSS strings, and responsive objects.

width

Responsive<string>

Sets the CSS **width** property. Supports CSS strings and responsive objects.

Table.RowLink

visuallyHidden

boolean

You can omit the Root part if you need to use a table without a backplate.

Use the Row Link part when you need to enable navigation on row click. Row Link works with router links and takes care of interactions like middle click, Control/Command-click, and keyboard navigation with roving focus.

Under the hood, Row Link renders an arrow icon and hides the child link. Screen readers are able to access the text contents of this cell, so don’t forget to label your links. Also, you will need to add a corresponding column header with an aria-label in the Table Header row.

You may nest interactive elements within interactive rows. Clicking a nested interactive element won’t click the row itself.

Interactive table rows with nested interactive elements maintain roving focus. Users can tab only into the contents of the currently focused row, which enables them to skip to the rest of the document without traversing all interactive elements of the table.

Use the Row Action part when you need to activate another interactive element on row click.

Use the value and onValueChange props to create a controlled table with selectable rows. You can use the Detail part to display the data related to the currently selected row.

Add the Footer part to display a toolbar with secondary information and controls related to the table, like pagination.

Fill the table with empty rows when you need a consistent height on the table regardless of how much data it currently has. The empty rows are automatically excluded from the accessibility tree.

The first column becomes automatically sticky if the table doesn’t fit in its container.

The header becomes automatically sticky if the table doesn’t fit in its container.

Dashboard

2 variants found

Table in Audit Logs Tabledashboard
Table in Directory Groups Tabledashboard

Context

Table.Content
PropTypeDefaultRequired
defaultValue
stringno
layout
Responsive<"auto" | "fixed">no
value
stringno

Also supports MarginProps: m, mb, ml, mr, mt, mx, my

Table.Row
PropTypeDefaultRequired
align
Responsive<"center" | "end" | "start" | "baseline">no
value
stringno
Table.ColumnHeader
PropTypeDefaultRequired
justify
Responsive<"center" | "end" | "start">no
maxWidth
Responsive<string>no
minWidth
Responsive<string>no
p
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pb
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pl
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pr
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pt
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
px
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
py
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
width
Responsive<string>no
Table.RowHeader
PropTypeDefaultRequired
justify
Responsive<"center" | "end" | "start">no
maxWidth
Responsive<string>no
minWidth
Responsive<string>no
p
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pb
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pl
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pr
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pt
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
px
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
py
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
width
Responsive<string>no
Table.Cell
PropTypeDefaultRequired
justify
Responsive<"center" | "end" | "start">no
maxWidth
Responsive<string>no
minWidth
Responsive<string>no
p
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pb
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pl
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pr
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
pt
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
px
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
py
Responsive<Union<string, "1" | "2" | "3" | "4" | "0" | "5" | "6" | "7" | "8" | "9">>no
width
Responsive<string>no
Table.RowLink
PropTypeDefaultRequired
visuallyHidden
booleanno

Usage

Used 859 times across 2 packages

Dashboard
717
Admin Portal
142

Variant Distribution

align

center
100%

justify

end
80%
center
20%

Where it's used

60 files

packages/dashboard/src/components/organizations/organization/members-table.tsx37
packages/dashboard/src/components/directory-sync/directory-users-table/directory-users-table.tsx33
packages/dashboard/src/components/audit-logs/audit-logs-table.tsx30
packages/dashboard/src/legacy-pages/[environmentId]/api-logs/index.tsx28
packages/dashboard/src/components/users/userland-invites-table.tsx27
packages/dashboard/src/components/actions/actions-table/actions-table.tsx26
packages/dashboard/src/components/directory-sync/directory-groups-table/directory-groups-table.tsx25
packages/dashboard/src/components/organizations/organization/invites-table.tsx24

/p/:portalSessionId/audit-logs/audit-logs-table

packages/admin-portal/src/app/p/[portalSessionId]/audit-logs/(components)/audit-logs-table/audit-logs-table.tsx30

/p/:portalSessionId/directory-sync/:directoryId/completed

packages/admin-portal/src/app/p/[portalSessionId]/directory-sync/[directoryId]/completed/page.tsx26

Show 50 more files