Skip to main content

Overview

Table follows a compound-component API so you can compose headers, body rows, and cells declaratively while keeping visual styles and interactions consistent with the design system.

Basic Usage

Selection & Actions

Enable checkboxes by setting selectionMode. Rows register automatically and the header renders a “select all” checkbox for multiple selection.

Sorting

Pass a controlled sortDescriptor to drive column sorting. Clicking any header with allowsSorting toggles between ascending and descending order.

Rich Cells

Compose cells with any JSX — avatars, badges, or multi-line content — while keeping spacing and typography consistent.

Props

Table.Head

Table.Body

Table.Row

Table.Cell

Types