Table
⋯
Table composes native table sections and cells for data with row and column relationships.
Table.Head renders <th> and Table.Cell renders <td>. Specialized cells display progress,
trends, inline input, or selection without changing the table’s native structure.
import { Table } from "@nesra/ui/table";
export function Accounts() { return ( <Table> <caption>Accounts</caption> <Table.Header> <Table.Row> <Table.Head scope="col">Name</Table.Head> </Table.Row> </Table.Header> <Table.Body> <Table.Row> <Table.Cell>Ada Lovelace</Table.Cell> </Table.Row> </Table.Body> </Table> );}Table is also exported from @nesra/ui. Its named parts are available through Table.
Composition
Section titled “Composition”Table├── Table.Header│ └── Table.Row with Table.Head cells│ └── Table.SortButton (optional, inside Table.Head)├── Table.Body│ └── Table.Row with Table.Cell or specialized cells└── Table.Footer (optional)Examples
Section titled “Examples”Sortable directory
Section titled “Sortable directory”Table.SortButton renders a native button and shows paired chevrons when unsorted, then an up or
down arrow for the active direction. Put aria-sort="ascending" or "descending" on the active
Table.Head, not on the button. The application updates the sort state and orders or fetches rows.
The example cycles each selected column through unsorted, ascending, descending, and back to
unsorted. Choosing another column starts ascending. Clearing sort restores the source row order.
density="directory" lets header and data row heights follow their content. It uses the existing
small-medium table text, gray header surface, neutral row surface, stroke, 16px horizontal cell
padding, 6px header padding, and 12px data cell padding. The Karyawan Figma measures 53px for its
two-line header and about 49px for its data rows; those are observations, not fixed component sizes.
The standard density remains the default. The example uses a minimum table width to demonstrate
horizontal overflow while column widths follow their content.
import { useState } from "react";import { Table } from "@nesra/ui/table";
const employees = [ { id: "EMP-003", name: "Dita Permata", email: "dita.p@nesra.ai" }, { id: "EMP-001", name: "Leni Yuska", email: "leni.yuska@nesra.ai" }, { id: "EMP-002", name: "Michael Owen", email: "owen@nesra.ai" },];
type SortColumn = "id" | "name" | "email";type SortDirection = "ascending" | "descending";
export function TableSortableDirectoryExample() { const [sort, setSort] = useState<{ column: SortColumn; direction: SortDirection } | null>(null); // oxlint-disable-next-line unicorn/no-array-sort -- The package targets ES2022, so sort a copy. const rows = [...employees].sort((a, b) => { if (!sort) return 0; const order = a[sort.column].localeCompare(b[sort.column]); return sort.direction === "ascending" ? order : -order; });
function toggleSort(column: SortColumn) { setSort((current) => { if (current?.column !== column) return { column, direction: "ascending" }; if (current.direction === "ascending") return { column, direction: "descending" }; return null; }); }
return ( <div className="max-h-64 max-w-full overflow-auto rounded-nesra-xl border border-nesra-stroke-border"> <Table className="min-w-[760px]" density="directory"> <caption className="sr-only">Employee directory</caption> <Table.Header sticky> <Table.Row> {(["id", "name", "email"] as const).map((column) => { const direction = sort?.column === column ? sort.direction : "none"; return ( <Table.Head key={column} aria-sort={direction === "none" ? undefined : direction} scope="col" sticky={column === "id" ? "left" : undefined} > <Table.SortButton direction={direction} onClick={() => toggleSort(column)}> {column === "id" ? "No. Induk Karyawan" : column === "name" ? "Nama Lengkap" : "Email"} </Table.SortButton> </Table.Head> ); })} </Table.Row> </Table.Header> <Table.Body> {rows.map((employee) => ( <Table.Row key={employee.id}> <Table.Cell sticky="left">{employee.id}</Table.Cell> <Table.Cell>{employee.name}</Table.Cell> <Table.Cell>{employee.email}</Table.Cell> </Table.Row> ))} </Table.Body> </Table> </div> );}Cell templates: ring, graph, upside / downside
Section titled “Cell templates: ring, graph, upside / downside”Table.RingCell, Table.GraphCell, and Table.SignalCell are reusable native <td> parts.
Their ring, graph, and direction icon are rendered as SVG from row data. No image assets are needed.
Table.GraphCell renders the Figma Table Cell Cell=Trend (the .Chart mini sparkline), and
Table.SignalCell renders Cell=Signal.
import { Table } from "@nesra/ui/table";
const rows = [ { name: "Revenue", progress: 85, movement: "12%", direction: "up", values: [36, 29, 33, 20, 30, 37, 38], }, { name: "Expenses", progress: 40, movement: "4%", direction: "down", values: [38, 32, 35, 25, 31, 27, 21], },] as const;
export function TableCellVariantsExample() { return ( <div className="max-w-full overflow-x-auto"> <Table className="min-w-[600px]" layout="fixed"> <caption className="sr-only">Performance cell templates</caption> <colgroup> <col style={{ width: "28%" }} /> <col style={{ width: "24%" }} /> <col style={{ width: "24%" }} /> <col style={{ width: "24%" }} /> </colgroup> <Table.Header> <Table.Row> <Table.Head scope="col">Metric</Table.Head> <Table.Head scope="col">Ring</Table.Head> <Table.Head scope="col">Graph</Table.Head> <Table.Head scope="col">Upside / downside</Table.Head> </Table.Row> </Table.Header> <Table.Body> {rows.map(({ name, progress, movement, direction, values }) => ( <Table.Row key={name}> <Table.Cell>{name}</Table.Cell> <Table.RingCell supportingText="Complete" value={progress} /> <Table.GraphCell direction={direction} label={`${name} trend is ${direction === "up" ? "increasing" : "decreasing"}`} values={values} /> <Table.SignalCell direction={direction} value={movement} /> </Table.Row> ))} </Table.Body> </Table> </div> );}Input cell
Section titled “Input cell”Table.InputCell renders the Figma Cell=Input. It shows the saved value, or the placeholder with
a pencil hint. Focus or typing starts a draft with Confirm and Cancel buttons. Enter or Confirm
calls onValueChange with the draft. Escape or Cancel restores the saved value. The application
validates the value and saves it.
Figma does not define what happens when focus leaves the cell. Nesra UI keeps an unconfirmed draft and its Confirm and Cancel buttons visible, so a change is never saved or lost without an explicit action.
import { Table } from "@nesra/ui/table";import { useState } from "react";
const campaigns = ["Awareness", "Retargeting"];
export function TableInputCellExample() { const [budgets, setBudgets] = useState<Record<string, string>>({ Awareness: "Rp300.000" });
return ( <Table layout="fixed"> <caption className="sr-only">Campaign budgets</caption> <Table.Header> <Table.Row> <Table.Head scope="col">Campaign</Table.Head> <Table.Head scope="col">Budget</Table.Head> <Table.Head scope="col">Saved budget</Table.Head> </Table.Row> </Table.Header> <Table.Body> {campaigns.map((campaign) => ( <Table.Row key={campaign}> <Table.Cell>{campaign}</Table.Cell> <Table.InputCell label={`Budget for ${campaign}`} onValueChange={(value) => setBudgets((current) => ({ ...current, [campaign]: value })) } placeholder="Add budget" value={budgets[campaign] ?? ""} /> <Table.Cell>{budgets[campaign] ?? "—"}</Table.Cell> </Table.Row> ))} </Table.Body> </Table> );}Fixed column widths
Section titled “Fixed column widths”layout="fixed" uses the widths in <colgroup>. The scroll container preserves those widths
when the page is narrower than the table.
import { Table } from "@nesra/ui/table";
const accounts = [ { name: "Ada Lovelace", team: "Operations", region: "Asia Pacific" }, { name: "Grace Hopper", team: "Engineering", region: "Europe" }, { name: "Katherine Johnson", team: "Research", region: "North America" },];
export function TableFixedLayoutExample() { return ( <div className="max-w-full overflow-x-auto"> <Table className="min-w-[520px]" layout="fixed"> <caption className="sr-only">Account teams and regions</caption> <colgroup> <col style={{ width: "40%" }} /> <col style={{ width: "35%" }} /> <col style={{ width: "25%" }} /> </colgroup> <Table.Header> <Table.Row> <Table.Head scope="col">Account</Table.Head> <Table.Head scope="col">Team</Table.Head> <Table.Head scope="col">Region</Table.Head> </Table.Row> </Table.Header> <Table.Body> {accounts.map((account) => ( <Table.Row key={account.name}> <Table.Cell>{account.name}</Table.Cell> <Table.Cell>{account.team}</Table.Cell> <Table.Cell>{account.region}</Table.Cell> </Table.Row> ))} </Table.Body> </Table> </div> );}Selection and footer
Section titled “Selection and footer”The example owns checkbox state and derives the header’s mixed state from selected rows. Pass
selected to each selected Table.Row for the row surface. Table does not synchronize row and
checkbox state. The 64px control column comes from the checkbox cell parts.
import { Table } from "@nesra/ui/table";import { useState } from "react";
const accounts = [ { id: "ada", name: "Ada Lovelace", team: "Operations", balance: "300,000", status: "Active" }, { id: "grace", name: "Grace Hopper", team: "Engineering", balance: "125,000", status: "Pending" },];
export function TableAccountsExample() { const [selected, setSelected] = useState<string[]>([]); const allSelected = selected.length === accounts.length;
return ( <div className="max-w-full overflow-x-auto"> <Table className="min-w-[620px]" layout="fixed"> <caption className="mb-nesra-gap-3 text-left">Account balances</caption> <colgroup> <col className="w-nesra-spacing-7xl" /> <col className="w-[40%]" /> <col className="w-[30%]" /> <col /> </colgroup> <Table.Header> <Table.Row> <Table.CheckHead checked={allSelected} indeterminate={selected.length > 0 && !allSelected} label="Select all accounts" onCheckedChange={() => setSelected(allSelected ? [] : accounts.map(({ id }) => id))} /> <Table.Head scope="col">Account</Table.Head> <Table.Head alignment="end" scope="col"> Balance </Table.Head> <Table.Head scope="col">Status</Table.Head> </Table.Row> </Table.Header> <Table.Body> {accounts.map((account) => ( <Table.Row key={account.id} selected={selected.includes(account.id)}> <Table.CheckCell checked={selected.includes(account.id)} label={`Select ${account.name}`} onCheckedChange={(checked) => setSelected((current) => checked ? [...current, account.id] : current.filter((id) => id !== account.id), ) } /> <Table.Cell> <span className="flex min-w-0 flex-col gap-nesra-spacing-xxs"> <span className="truncate">{account.name}</span> <span className="truncate type-nesra-body-xsmall-regular text-nesra-text-support"> {account.team} </span> </span> </Table.Cell> <Table.Cell alignment="end">{account.balance}</Table.Cell> <Table.Cell>{account.status}</Table.Cell> </Table.Row> ))} </Table.Body> <Table.Footer> <Table.Row> <Table.Cell colSpan={2}>Total</Table.Cell> <Table.Cell alignment="end">425,000</Table.Cell> <Table.Cell /> </Table.Row> </Table.Footer> </Table> </div> );}Sticky right action column
Section titled “Sticky right action column”sticky="right" pins the action column to the right edge while the other columns scroll.
import { Table } from "@nesra/ui/table";
const accounts = [ { name: "Ada Lovelace", team: "Operations", region: "Asia", balance: "300,000" }, { name: "Grace Hopper", team: "Engineering", region: "Europe", balance: "125,000" }, { name: "Katherine Johnson", team: "Research", region: "Americas", balance: "84,000" },];
export function TableStickyRightExample() { return ( <div className="max-w-[420px] overflow-x-auto border border-nesra-stroke-border"> <Table className="min-w-[720px]" layout="fixed"> <caption className="sr-only">Accounts with pinned actions</caption> <colgroup> <col style={{ width: 200 }} /> <col style={{ width: 160 }} /> <col style={{ width: 120 }} /> <col style={{ width: 160 }} /> <col style={{ width: 80 }} /> </colgroup> <Table.Header> <Table.Row> <Table.Head scope="col">Account</Table.Head> <Table.Head scope="col">Team</Table.Head> <Table.Head scope="col">Region</Table.Head> <Table.Head alignment="end" scope="col"> Balance </Table.Head> <Table.Head alignment="center" scope="col" sticky="right"> Action </Table.Head> </Table.Row> </Table.Header> <Table.Body> {accounts.map((account) => ( <Table.Row key={account.name}> <Table.Cell>{account.name}</Table.Cell> <Table.Cell>{account.team}</Table.Cell> <Table.Cell>{account.region}</Table.Cell> <Table.Cell alignment="end">{account.balance}</Table.Cell> <Table.Cell alignment="center" sticky="right"> <button className="rounded-nesra-xs px-nesra-padding-sm text-nesra-text-link underline focus-visible:outline-2" onClick={() => window.alert(`Open ${account.name}`)} type="button" > Open </button> </Table.Cell> </Table.Row> ))} </Table.Body> </Table> </div> );}Sticky columns
Section titled “Sticky columns”Place the table in a scrollable container. sticky on Table.Header pins header cells vertically.
sticky="left" or "right" pins individual cells horizontally. For a second pinned column,
pass stickyOffset equal to the width of the first pinned column to both header and data cells.
Pinned headers stay above the other headers. The outside edge of the pinned group has a shadow fade.
import { Table } from "@nesra/ui/table";
const rows = [ { name: "Ada Lovelace", team: "Operations", region: "Asia", balance: "300,000" }, { name: "Grace Hopper", team: "Engineering", region: "Europe", balance: "125,000" },];
export function TableStickyColumnsExample() { return ( <div className="h-32 max-w-[420px] overflow-auto border border-nesra-stroke-border"> <Table className="min-w-[620px]" layout="fixed"> <caption className="sr-only">Accounts with two pinned columns</caption> <colgroup> <col className="w-[180px]" /> <col className="w-[160px]" /> <col className="w-[120px]" /> <col className="w-[160px]" /> </colgroup> <Table.Header sticky> <Table.Row> <Table.Head scope="col" sticky="left"> Name </Table.Head> <Table.Head scope="col" sticky="left" stickyOffset={180}> Team </Table.Head> <Table.Head scope="col">Region</Table.Head> <Table.Head alignment="end" scope="col"> Balance </Table.Head> </Table.Row> </Table.Header> <Table.Body> {rows.map((row) => ( <Table.Row key={row.name}> <Table.Cell sticky="left">{row.name}</Table.Cell> <Table.Cell sticky="left" stickyOffset={180}> {row.team} </Table.Cell> <Table.Cell>{row.region}</Table.Cell> <Table.Cell alignment="end">{row.balance}</Table.Cell> </Table.Row> ))} </Table.Body> </Table> </div> );}Light and Dark
Section titled “Light and Dark”Table reads only semantic color roles, so the same markup follows the page theme. Apply .dark or
data-theme="dark" to <html> or a containing element
(color roles). The roles follow Figma’s Table Cell, .table mini chart, .Chart mini
and Signal components.
| Part | Figma variable | CSS token |
|---|---|---|
| Header cell | Foundation/bg-gray, Text/text-body |
--nesra-foundation-bg-gray, --nesra-text-body |
| Data cell and border | Foundation/bg-neutral, Stroke/stroke-border |
--nesra-foundation-bg-neutral, --nesra-stroke-border |
| Sort icon | Icon/icon-muted |
--nesra-icon-muted |
| Supporting text | Text/text-support |
--nesra-text-support |
| Ring: red, orange, green | Categorical/Red/base, Orange/base, Green/base |
--nesra-categorical-{red,orange,green}-base |
| Ring track | Action/primary-disabled |
--nesra-action-primary-disabled |
| Graph line, marker | Stroke/stroke-success, Stroke/stroke-destructive |
--nesra-stroke-success, --nesra-stroke-destructive |
| Graph area | Categorical/Green/base, Categorical/Red/base 10% |
--nesra-categorical-{green,red}-base, faded to transparent |
| Signal triangle | Icon/icon-success, Icon/icon-destructive |
--nesra-icon-success, --nesra-icon-destructive |
| Input placeholder, value | Text/text-support, Text/text-body |
--nesra-text-support, --nesra-text-body |
| Input pencil, editing underline | Icon/icon-muted, Stroke/stroke-border |
--nesra-icon-muted, --nesra-stroke-border |
| Input confirm, cancel | Icon/icon-success, Icon/icon-destructive |
--nesra-icon-success, --nesra-icon-destructive |
| Checkbox, checked | Action/primary-default, Icon/icon-on-brand |
--nesra-action-primary-default, --nesra-icon-on-brand |
| Checkbox, unchecked | Foundation/bg-neutral, Stroke/stroke-brand-primary |
--nesra-foundation-bg-neutral, --nesra-stroke-brand-primary |
| Checkbox, disabled | Foundation/bg-disabled, Icon/icon-disabled |
--nesra-foundation-bg-disabled, --nesra-icon-disabled |
| Sort button and checkbox focus | Box Shadow/Focus ring |
shadow-nesra-focus-ring |
In Dark the checked checkbox inverts to a light fill with a dark check, and the cell surfaces become
gray-950 and gray-800. The ring keeps the same categorical hues in both modes, while the graph and
signal colors use the Dark success and destructive roles. In Light, the green and orange ring arcs
are below 3:1 against white, so the visible percentage carries the value. Pinned-column fades and
the sticky header shadow use --nesra-shadow-lg-01, which is darker in Dark.
Accessibility
Section titled “Accessibility”- Provide a
<caption>or another accessible table name. Usescope="col"orscope="row"on headers. Use nativeidandheadersfor complex associations. Table.CheckHeadandTable.CheckCellrequire alabel. They render named Base UI checkboxes. The application handlesonCheckedChangeand keeps header, row, and checkbox state aligned.Table.Row selectedchanges the row surface and setsdata-selected. It does not select data.- Native table navigation follows the browser. Editing, pagination, virtualization, and any grid keyboard model belong to the application.
Table.InputCellrequires alabelthat names the row and column, such as “Budget for Awareness”. Confirm and Cancel are native buttons named by theConfirmandCancelinterface translations. Escape inside an editing input does not reach a surrounding dialog.Table.SortButtonis a native button, so Enter and Space activateonClick. It has a visible focus ring. Keep its text label meaningful and setaria-sortonly on the currently sorted<th>. The application manages direction and row order.
API reference
Section titled “API reference”Table / TableRoot
Section titled “Table / TableRoot”Renders a native <table> and forwards table attributes and its ref. TableRoot is the flat alias.
| Prop | Type | Default | Effect |
|---|---|---|---|
layout |
"auto" | "fixed" |
"auto" |
Chooses the browser’s table layout algorithm. Use <colgroup> for explicit widths with fixed. |
density |
"default" | "directory" |
"default" |
Uses standard sizing or lets header and data row heights follow their content. |
Native children, className, style, and table attributes remain available.
Table.Header
Section titled “Table.Header”Renders <thead> and forwards native section attributes and its ref.
| Prop | Type | Default | Effect |
|---|---|---|---|
sticky |
boolean |
false |
Pins descendant header cells to the top of a vertically scrolling container and applies a bottom shadow. |
Use a scroll container with a bounded height for vertical scrolling. Pinned column headers remain above other sticky headers.
Table.Body
Section titled “Table.Body”Renders <tbody> and forwards native section attributes and its ref. It adds no component-specific
props. Native tbody attributes, className, and children remain available.
Table.Footer
Section titled “Table.Footer”Renders <tfoot> and forwards native section attributes and its ref. It adds no component-specific
props. Native tfoot attributes, className, and children remain available.
Table.Row
Section titled “Table.Row”Renders <tr> and forwards native row attributes and its ref.
| Prop | Type | Default | Effect |
|---|---|---|---|
selected |
boolean |
false |
Changes the row surface and sets data-selected. The application still owns selection state. |
Native tr attributes, className, and children remain available.
Table.Head
Section titled “Table.Head”Renders <th> and forwards native header attributes and its ref. Set scope="col" for a column
header.
| Prop | Type | Default | Effect |
|---|---|---|---|
alignment |
"start" | "center" | "end" |
"start" |
Aligns text horizontally. |
sticky |
"left" | "right" |
— | Pins the header cell to that horizontal edge. |
stickyOffset |
number | string |
— | Offsets the pinned cell. Numbers are CSS pixels. |
Table.SortButton
Section titled “Table.SortButton”Renders a native <button type="button"> inside Table.Head and forwards button attributes and
its ref. The text child names the action. Its icon is decorative. This part does not set aria-sort,
change sort state, or order rows.
| Prop | Type | Default | Effect |
|---|---|---|---|
direction |
"none" | "ascending" | "descending" |
"none" |
Shows paired chevrons, an up arrow, or a down arrow. |
onClick |
Native button handler | — | Reports activation to the application. |
Table.Cell
Section titled “Table.Cell”Renders <td> and forwards native cell attributes and its ref. Place text or components in
children to compose cell content.
| Prop | Type | Default | Effect |
|---|---|---|---|
alignment |
"start" | "center" | "end" |
"start" |
Aligns text horizontally. |
sticky |
"left" | "right" |
— | Pins the data cell to that horizontal edge. |
stickyOffset |
number | string |
— | Offsets the pinned cell. Numbers are CSS pixels. |
For two or more pinned columns, set stickyOffset to the total width of preceding pinned columns
on the same edge. Both cell parts accept native attributes, className, style, and refs.
Table.RingCell
Section titled “Table.RingCell”Renders a 20px SVG progress ring, percentage, and optional supporting text in a native <td>.
The ring is red below 50%, orange from 50% to below 75%, and green from 75% upward.
| Prop | Type | Default | Effect |
|---|---|---|---|
value |
number |
Required | Percentage, clamped to 0–100. |
supportingText |
string |
— | Adds a muted line under the visible percentage. |
Table.GraphCell
Section titled “Table.GraphCell”Renders a 112 × 56px SVG sparkline in a native <td>. The supplied label names the chart for
assistive technology.
| Prop | Type | Default | Effect |
|---|---|---|---|
values |
readonly number[] |
Required | Plots at least two finite values from left to right. |
direction |
"up" | "down" |
Required | Uses green or red to convey trend direction. |
label |
string |
Required | Accessible description of metric and trend. |
Table.SignalCell
Section titled “Table.SignalCell”Renders the 20px Figma Signal triangle, up or down, and a visible change in a native <td>. Direction is also
available as screen-reader text, so color and icon shape are not the only cues.
| Prop | Type | Default | Effect |
|---|---|---|---|
direction |
"up" | "down" |
Required | Shows green up or red down direction. |
value |
string |
Required | Displays the change, including its unit. |
Table.InputCell
Section titled “Table.InputCell”Renders a native <input> with optional Confirm and Cancel buttons in a native <td>.
| Prop | Type | Default | Effect |
|---|---|---|---|
label |
string |
Required | Names the input for assistive technology. |
value |
string |
— | Sets the controlled saved value. |
defaultValue |
string |
"" |
Sets the initial uncontrolled saved value. |
onValueChange |
(value: string) => void |
— | Receives the draft on Enter or Confirm. |
onValueCancel |
() => void |
— | Reports Escape or Cancel. |
placeholder |
string |
— | Shows in text-support while the value is empty. |
disabled |
boolean |
false |
Disables the input and its buttons. |
inputProps |
Native input props | — | Forwards attributes such as inputMode, maxLength, or name. |
The cell has data-cell-template="input" and data-editing while a draft is open.
All four templates forward native cell attributes, alignment, sticky, stickyOffset,
className, style, and refs, like Table.Cell.
Table.CheckHead
Section titled “Table.CheckHead”Renders a 64px wide <th> with a Base UI Checkbox. Forwards native header attributes and its ref,
except children. scope defaults to "col". The checkbox is centered in the cell.
| Prop | Type | Default | Effect |
|---|---|---|---|
label |
string |
Required | Names the checkbox for assistive technology. |
checked |
boolean |
— | Sets controlled selection. |
defaultChecked |
boolean |
— | Sets initial uncontrolled selection. |
indeterminate |
boolean |
— | Shows mixed selection, such as some rows selected. |
disabled |
boolean |
— | Disables the checkbox and applies the inactive cell surface. |
onCheckedChange |
(checked: boolean, details: CheckboxRootChangeEventDetails) => void |
— | Reports a checkbox change. Update controlled selection in the application. |
sticky |
"left" | "right" |
— | Pins the selection column to a horizontal edge. |
stickyOffset |
number | string |
— | Offsets the pinned cell. Numbers are CSS pixels. |
Table.CheckCell
Section titled “Table.CheckCell”Renders a 64px wide <td> with a centered Base UI Checkbox. Forwards native data cell attributes
and its ref except children. Use a row-specific label such as "Select Ada".
| Prop | Type | Default | Effect |
|---|---|---|---|
label |
string |
Required | Names this row’s checkbox. |
checked |
boolean |
— | Sets controlled row selection. |
defaultChecked |
boolean |
— | Sets initial uncontrolled row selection. |
indeterminate |
boolean |
— | Shows a mixed checkbox state. |
disabled |
boolean |
— | Disables the checkbox and applies the inactive cell surface. |
onCheckedChange |
(checked: boolean, details: CheckboxRootChangeEventDetails) => void |
— | Reports a checkbox change to application state. |
sticky |
"left" | "right" |
— | Pins the selection column to a horizontal edge. |
stickyOffset |
number | string |
— | Offsets the pinned cell. Numbers are CSS pixels. |
See Layout and Colors for the underlying Light and Dark tokens.