Table

Organized display of data in rows and columns with customizable styling

Preview

Installation

Usage

Examples

Add footer rows for totals or summaries.

Scrollable

Constrain the table height with className to enable scrolling. The header stays sticky automatically.

Bordered

Add borders to all cells for a grid appearance.

Striped

Alternate row backgrounds for better readability.

Row Selection

Select rows with visual feedback.

API Reference

Props

Table

Root container that wraps the table and provides variant context to children via data attributes. Features a card-like appearance with a muted background border.

Prop

TableRow

Represents a row in the table. Supports polymorphic rendering via the render prop.

Prop

TableHeader, TableBody, TableFooter

Semantic table sections. All support polymorphic rendering via the render prop.

Prop

TableHead, TableCell

Table header and data cells. Inherit bordered variant from the parent Table. Both support polymorphic rendering via the render prop.

Prop

TableCaption

Table caption element. Supports polymorphic rendering via the render prop.

Prop