Root Props
| Prop | Type | Default |
|---|---|---|
dataAlign | 'start' | 'center' | 'end' | 'between' | 'between' |
| Defines the alignment strategy for table data cells. 'start': Aligns content to the left; 'center': Centers content; 'end': Aligns content to the right; 'between': Distributes space evenly between cells | ||
edgePadded | boolean | false |
| Adds horizontal padding to the edges of the table container. Useful when the table should not stretch to the viewport edge. | ||
fullWidth | boolean | — |
| Makes the table stretch to fill the full width of its container. | ||
fullHeight | boolean | — |
| Makes the table stretch to fill the full height of its container. Useful for layouts with scrollable or pinned regions. | ||
ref | Ref<HTMLTableElement> | — |
Ref to the native HTML <table> element. Useful for focus, measurement, or imperative access. | ||
Also accepts all <table> attributes.
Child Parts
TableHead: semantic header section.TableBody: semantic body section.TableFoot: semantic footer section.TableRow: row structure.TableHeading: heading cell.TableData: data cell.
TableBody
Also accepts all <tbody> attributes.
TableData
| Prop | Type | Default |
|---|---|---|
dataAlign | TableProps['dataAlign'] | — |
| Controls horizontal alignment of the cell’s content. Inherits from TableProps and typically affects text alignment or flex layout. 'start' | 'center' | 'end' | 'between' | ||
Also accepts all HTML attributes.
TableFoot
Also accepts all <tbody> attributes.
TableHead
Also accepts all <tbody> attributes.
TableRow
Also accepts all <tr> attributes.
TableHeading
| Prop | Type | Default |
|---|---|---|
dataAlign | TableProps['dataAlign'] | — |
| Controls horizontal alignment of the heading content. Inherits from TableProps and typically affects text or layout alignment. 'start' | 'center' | 'end' | 'between' | ||
Also accepts all HTML attributes.
Types
TablePropsTableHeadPropsTableBodyPropsTableFootPropsTableRowPropsTableHeadingPropsTableDataProps
State Model
Tabledoes not own interactive row state the wayDataGriddoes.- The root provides alignment and edge-padding context to cell parts.
useTableContextis available for advanced wrappers and custom compositions.