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.

fixedHeader
boolean
false
Sticks the thead to the top of the scrollable area when the table overflows vertically.
fixedFooter
boolean
false
Sticks the tfoot to the bottom of the scrollable area.
caption
string
Accessible table caption text rendered as a <caption> element.
captionVisible
boolean
false
When false the caption is visually hidden but remains accessible to screen readers.
ariaRowcount
number
Total row count passed as aria-rowcount — useful for virtual or paginated tables where not all rows are in the DOM.
id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
false
Applies a border to the table container.
borderTop
boolean | number | string
borderLeft
boolean | number | string
borderBottom
boolean | number | string
borderRight
boolean | number | string
borderBlock
boolean | number | string
borderInline
boolean | number | string
borderInlineStart
boolean | number | string
borderInlineEnd
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderColor
string
borderStyle
string
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderInlineStartColor
TColor
borderInlineEndColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor
rounded
boolean | number | string | TRounded | null | undefined
Border-radius token.
roundedTopRight
boolean | number | string
roundedTopLeft
boolean | number | string
roundedBottomLeft
boolean | number | string
roundedBottomRight
boolean | number | string
roundedStartStart
boolean | number | string
roundedStartEnd
boolean | number | string
roundedEndStart
boolean | number | string
roundedEndEnd
boolean | number | string
elevation
TElevation
Box-shadow elevation token.
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string
hover
boolean | IStateEffectConfig
false
Highlights rows on mouse hover.
hoverClass
string
height
number | string
Constrains the table height — triggers the sticky header/footer scroll container.
maxHeight
number | string
maxWidth
number | string
minHeight
number | string
minWidth
number | string
width
number | string
Overrides the table width.
density
TDensity
'default'
Adjusts cell padding density.
tag
string
'table'
Root HTML element — defaults to the semantic <table> element.
fontSize
TFontSize
fontWeight
TFontWeight

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

vue

Fixed header

vue