Table
Props
Name
Type
columns
{ id: string, label: string, width?: string }[]
Table columns
minColumnWidth
number
Minimum column width in px. Defaults to 160
.
rows
Record<string, unknown>[]
Table rows
Slots
Name
Payload
header-${column.id}
{ column: { id: string, label: string, width?: string } }
Header cell. Renders column.label
by default.
cell-${column.id}
{ column: { id: string, label: string, width?: string }, row: Record<string, unknown> }
Body cell. Renders row[column.id]
by default.