Skip to content
v2.5.0
English
Русский
Documentation

Table

Table is a compound component for semantic tabular data where native table structure matters more than grid-like keyboard interaction.

Root Props

PropTypeDefault
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
edgePaddedbooleanfalse
Adds horizontal padding to the edges of the table container. Useful when the table should not stretch to the viewport edge.
fullWidthboolean—
Makes the table stretch to fill the full width of its container.
fullHeightboolean—
Makes the table stretch to fill the full height of its container. Useful for layouts with scrollable or pinned regions.
refRef<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

PropTypeDefault
dataAlignTableProps['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

PropTypeDefault
dataAlignTableProps['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

  • TableProps
  • TableHeadProps
  • TableBodyProps
  • TableFootProps
  • TableRowProps
  • TableHeadingProps
  • TableDataProps

State Model

  • Table does not own interactive row state the way DataGrid does.
  • The root provides alignment and edge-padding context to cell parts.
  • useTableContext is available for advanced wrappers and custom compositions.