Table

Table lists items vertically and can include actions for each row. The columns display property values for users to scan, sort, and compare.

Name
Description
Brand
Category
iPhone 15
A nice phone
Apple
smartphones
Aventador SVJ
Good italian car
Lamborghini
cars
Uno with stair
Fastest car on earth
Fiat
cars

Optional props

columnWidths

Array of column widths

When using the Table component

type
string[]
default
[] When using the SimpleTable component

asChild

If true, the Table component will be rendered as a child of the Compose component

type
boolean
default
false

stickyHeader

If true, the header will be sticky

type
boolean
default
false

stickyColumn

If true, the first column will be sticky

type
boolean
default
false

density

The density of the table

type
default
comfortable
compact
default
default