Table

A table for rows of data.

Installation

  1. Add the registryOnce per project
  2. Add table

Usage

Wide tables scroll sideways inside a Scroll Area, which fades the edges.

Composition

Examples

Row selection

Set data-state="selected" on a selected row to highlight it. Give each checkbox an aria-label that names its row.

Row actions

Give the column's header visually hidden text, and each menu trigger an aria-label that names its row.

Props

Table's props, including className, go to the <table>, not its scrolling wrapper.