v0.1 public beta early access on GitHub
Home / Components / data-table

Data TableiOS

Compact card-bound table: muted uppercase header, 48pt rows, pressable rows, and cells that take strings or rich elements.

$ npx lumioui add data-table
import { DataTable } from "@/components/ui/data-table/data-table";
Props5
columns DataTableColumn[]
rows Record<string, React.ReactNode>[] Cell values keyed by column.key. Strings render as text; pass elements (Badge, Chip, price Text) for richer cells.
onRowPress? (row: Record<string, React.ReactNode>, index: number) => void Makes rows pressable with ink + haptic.
rowLabel? string Label appended to each row's a11y announcement, e.g. "transaction".
className? string
Data Tabledata-table.tsx
data-table/data-table.tsx open

Compact card-bound table: muted uppercase header, 48pt rows, pressable rows, and cells that take strings or rich elements.