Table

A set of composable table subcomponents for displaying structured, tabular data with sortable columns, row striping, and hover highlights.

Installation

npx dafink-ui add table

Demos

NameRoleStatus
Alice KimDesignerActive
Ben TorresEngineerActive
Clara PatelPMOn leave

Minimal variant

A flat, borderless look: no outer card border, no header fill, no zebra striping. Matches the docs site's PropsTable.

NameTypeDescription
labelstringVisible label above the field.
disabledbooleanPrevents interaction.

Composition

<Table>
<TableHead>
<TableRow>
<TableHeader />
</TableRow>
</TableHead>
<TableBody>
<TableRow>
<TableCell />
</TableRow>
</TableBody>
</Table>

Props

NameTypeDefaultDescription
stripedbooleanfalseAlternates odd/even row background colors in the body. No effect when variant is "minimal".
variant'default' | 'minimal''default'Visual style. "minimal" is a flat, borderless look (matches the docs PropsTable) with no outer border or header fill.
classNamestring""Additional classes merged onto the table element.