Table
Data Display
stable
Semantic HTML table wrapper with optional fixed header/footer, elevation, rounded corners and hover row styling.
API
Props
All props accepted by this component, with their type, default value and description.
- fixedHeaderbooleanfalse
- Sticks the thead to the top of the scrollable area when the table overflows vertically.
- fixedFooterbooleanfalse
- Sticks the tfoot to the bottom of the scrollable area.
- captionstring
- Accessible table caption text rendered as a <caption> element.
- captionVisiblebooleanfalse
- When false the caption is visually hidden but remains accessible to screen readers.
- ariaRowcountnumber
- Total row count passed as aria-rowcount — useful for virtual or paginated tables where not all rows are in the DOM.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- borderboolean | number | string | TDirectionBoth | Array<TDirectionBoth>false
- Applies a border to the table container.
- borderTopboolean | number | string
- borderLeftboolean | number | string
- borderBottomboolean | number | string
- borderRightboolean | number | string
- borderBlockboolean | number | string
- borderInlineboolean | number | string
- borderInlineStartboolean | number | string
- borderInlineEndboolean | number | string
- borderBlockStartboolean | number | string
- borderBlockEndboolean | number | string
- borderColorstring
- borderStylestring
- borderTopColorTColor
- borderRightColorTColor
- borderBottomColorTColor
- borderLeftColorTColor
- borderInlineStartColorTColor
- borderInlineEndColorTColor
- borderBlockStartColorTColor
- borderBlockEndColorTColor
- roundedboolean | number | string | TRounded | null | undefined
- Border-radius token.
- roundedTopRightboolean | number | string
- roundedTopLeftboolean | number | string
- roundedBottomLeftboolean | number | string
- roundedBottomRightboolean | number | string
- roundedStartStartboolean | number | string
- roundedStartEndboolean | number | string
- roundedEndStartboolean | number | string
- roundedEndEndboolean | number | string
- elevationTElevation
- Box-shadow elevation token.
- paddingboolean | number | string
- paddingTopboolean | number | string
- paddingLeftboolean | number | string
- paddingBottomboolean | number | string
- paddingRightboolean | number | string
- paddingBlockboolean | number | string
- paddingInlineboolean | number | string
- paddingInlineStartboolean | number | string
- paddingInlineEndboolean | number | string
- paddingBlockStartboolean | number | string
- paddingBlockEndboolean | number | string
- marginboolean | number | string
- marginTopboolean | number | string
- marginLeftboolean | number | string
- marginBottomboolean | number | string
- marginRightboolean | number | string
- marginBlockboolean | number | string
- marginInlineboolean | number | string
- marginInlineStartboolean | number | string
- marginInlineEndboolean | number | string
- marginBlockStartboolean | number | string
- marginBlockEndboolean | number | string
- hoverboolean | IStateEffectConfigfalse
- Highlights rows on mouse hover.
- hoverClassstring
- heightnumber | string
- Constrains the table height — triggers the sticky header/footer scroll container.
- maxHeightnumber | string
- maxWidthnumber | string
- minHeightnumber | string
- minWidthnumber | string
- widthnumber | string
- Overrides the table width.
- densityTDensity'default'
- Adjusts cell padding density.
- tagstring'table'
- Root HTML element — defaults to the semantic <table> element.
- fontSizeTFontSize
- fontWeightTFontWeight
API
Slots
Content slots exposed by this component.
- #top
- Content rendered above the table (search bar, title…).
- #wrapper
- #default
- Full table content — thead, tbody, tfoot.
- #bottom
- Content rendered below the table (pagination…).
Interactive
Playground
Edit props live and see the component update in real time. The generated code snippet updates as you change values.
Rendering the live preview…
Usage
Examples
Ready-to-paste code snippets for your templates.
Basic table
Fixed header