Skip to content
Twentyfirst UIPro

Table

Data · Avatar, Badge, Table

View as Markdown

Quiet data table: uppercase captions, hairline rows, right-aligned tabular numbers.

Props: columns ({key, label, align, render}), rows. Place inside a surface Panel; numbers right-aligned; status as Badges.

CustomerPlanStatusMRR
NNorthwindTeamActive€1,240
BFBlue FernStarterTrial€0
CCopperlineBusinessPast due€3,900

Props

Avatar

PropTypeNotes
namestringRequired
src?string
size?number
tint?Tint | "surface-sunken"
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Badge

PropTypeNotes
tone?Tone
dot?boolean
live?boolean
children?ReactNode
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Table

PropTypeNotes
columnsTableColumn[]Required
rowsRecord<string, any>[]Required
animate?boolean
stack?booleanCards instead of columns when the table's box is narrow (up to 600px): every row stacks its cells, each with its column label. Without it narrow tables scroll sideways.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.