Data table
A customers table with sortable columns, price, product and region filters, search, row selection with select-all, per-row purchase status, inline rename, delete, a more menu, pagination and a Normal or Compact density switch.
What it is for
Customer, order or user lists in a dashboard (scrolls sideways in narrow containers).
Use it
1 · site.json
"effects": { "components": ["data-table"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components data-table2 · import it
import { DataTable } from '@/components/fx/ui';Files
components/fx/ui/DataTable.tsxcomponents/fx/ui/SegmentedControl.tsxcomponents/fx/ui/_bui-pop.tsxcomponents/fx/ui/_bui.tsxcomponents/fx/ui/LICENSE-boardui.txtui-bui-base.cssstylesui-segmented-control.cssstylesui-data-table.cssstyles
Source
Adapted from BoardUI (MIT). Restyled in plain CSS and rewritten without its libraries; the upstream licence and notice are kept (see THIRD_PARTY_NOTICES.md).
Credits and licences: third-party notices.
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.