On this page:

Table

Preview

index.tsx
ID
Name
Category
Price
Stock
1
Item 1
Electronics
$10
0
2
Item 2
Clothing
$27
13
3
Item 3
Food
$44
26
4
Item 4
Books
$61
39
5
Item 5
Electronics
$78
52

Advanced Table

Preview

index.tsx

Product Inventory

Complete inventory with advanced table features
ID
PRODUCT NAME
CATEGORY
PRICE ($)
IN STOCK
RATING
LAST UPDATED
1
Item 1
Electronics
$10
0 units
★☆☆☆☆
2025-01-01
2
Item 2
Clothing
$27
13 units
★☆☆☆☆
2025-01-12
3
Item 3
Food
$44
26 units
★★☆☆☆
2025-01-23
4
Item 4
Books
$61
39 units
★★★☆☆
2025-01-03
5
Item 5
Electronics
$78
52 units
★★★☆☆
2025-01-14

Preview

index.tsx

Project Management

Track and manage all projects
PROJECT NAME
PM
DEADLINE
STATUS
TEAM
Design System
Kristin Watson
January 1, 2025
On hold
Team member
Team member
Mobile App
Cody Fisher
March 6, 2025
On track
Team member
Team member
+1
Landing page
Kristin Watson
May 11, 2025
At risk
Team member
Team member
+2
Game UI
Cody Fisher
July 16, 2025
On hold
Team member
Team member
Dashboard
Kristin Watson
September 21, 2025
On track
Team member
Team member
+1
CRM System
Cody Fisher
November 26, 2025
At risk
Team member
Team member
+2
E-commerce
Kristin Watson
January 3, 2025
On hold
Team member
Team member
Analytics
Cody Fisher
March 8, 2025
On track
Team member
Team member
+1
Design System
Kristin Watson
May 13, 2025
At risk
Team member
Team member
+2
Mobile App
Cody Fisher
July 18, 2025
On hold
Team member
Team member

Design Tokens for Table

TokenColor forState/Meaning
--par-color-bg-tableTable backgroundDefault/Enabled
--par-color-bg-table-header-cell-item-enabledHeader cell backgroundEnabled
--par-color-bg-table-header-cell-item-hoveredHeader cell backgroundHovered
--par-color-bg-table-header-cell-item-activeHeader cell backgroundActive
--par-color-bg-table-body-row-item-enabledRow backgroundEnabled
--par-color-bg-table-body-row-item-hoveredRow backgroundHovered
--par-color-bg-table-batch-action-selected-itemRow backgroundSelected
--par-color-border-tableTable borderAny
--par-color-text-table-header-cell-item-enabledHeader cell textEnabled
--par-color-text-table-header-cell-item-hoveredHeader cell textHovered
--par-color-text-table-header-cell-item-activeHeader cell textActive
--par-color-text-table-content-itemTable cell textAny

Table API Reference

<Table /> Props

PropTypeDefaultDescription
dataobject[]Data to display in the table.
columnsTableColumn[]Column definitions, see TableColumn below.
color'neutral' | 'accent''neutral'Table color scheme.
selectablebooleanfalseEnable row selection with checkboxes.
selectedRowsobject[][]List of currently selected rows (by rowKey).
onSelect(selectedRows: object[]) => voidCallback when rows are selected.
onRowClick(record, index) => voidCallback when a row is clicked.
onSort(key: string, direction: 'asc' | 'desc') => voidCallback when a column is sorted.
sortKeystringThe key of the currently sorted column.
sortDirection'asc' | 'desc''asc'Current sort direction.
maxHeightnumber | stringMaximum table height.
emptyStateReact.ReactNodeComponent to display when there is no data.
footerReact.ReactNodeComponent to display in the table footer.
showRowCountbooleantrueShow row count in the footer.
freezeColumnsnumber-1Number of columns to freeze on the left (including checkbox if any).
actionsReact.ReactNodeActions to display in the table header.
batchActionsReact.ReactNodeActions for selected rows.
descriptionReact.ReactNodeShort description for the table.
classNamestringCustom class for the table container.
...tablePropsHTMLTableElement propsAll native HTML <table> props.

TableColumn

PropTypeDescription
keystringUnique key for the column, matches data field.
titleReact.ReactNodeColumn header.
widthnumberColumn width (px).
sortablebooleanEnable sorting for this column.
resizablebooleanEnable column resizing.
render(value, record, index) => React.ReactNodeCustom cell render function.

Note: