byronwade/ui
Application UI

Data display · Application UI

Table

Table system: a styled, accessible HTML table primitive with scrollable container, density and layout variants, plus the DataTable admin shell (index filters, bulk selection, sortable columns, pagination).

@byronwade/foundation@byronwade/utils@byronwade/table@byronwade/checkbox@byronwade/bulk-action-bar@byronwade/skeleton@byronwade/button@byronwade/empty-state@byronwade/index-filters@byronwade/segmented-control@byronwade/data-table@phosphor-icons/react

Feature showcase

Installation

Features

  • Compound HTML table parts

    Provides container, table, header, body, footer, row, head, cell, and caption parts.

  • Density and layout variants

    Comfortable, condensed, and spacious density; default, sticky-header, and card layouts.

  • DataTable admin shell

    Install @byronwade/data-table for Shopify-grade index filters, bulk bar, selection, and pagination.

  • Inset admin framing

    DataTable supports an `inset` frame for Shopify-style admin panels while the table primitive keeps density and layout variants separate.

  • Data-state styling hooks

    Rows support selected-state styling for tables with selection.

API

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes merged onto the root table element.
density"comfortable" | "condensed" | "spacious""comfortable"Row and header padding scale — comfortable (default), condensed, or spacious.
layout"default" | "sticky-header" | "card""default"Container chrome — plain scroll, sticky header, or card-wrapped table.
childrenReact.ReactNode-Table content, typically TableHeader, TableBody, and TableFooter compound parts.

Exports

ExportKindDescription
TablecomponentScrollable table root and native table element.
TableHeadercomponentTable header group.
TableBodycomponentTable body group.
TableRowcomponentTable row element.
TableCellcomponentBody cell element.
DataTablecomponentAdmin index shell composing index-filters, selectable table, bulk bar, and pagination.
tableHeadVariantsconstantCVA variant map for header cell density.

Slots

SlotElementDescription
table-container-Scrollable wrapper.
tabletableNative table element.
table-headertheadHeader group.
table-rowtrRow.
table-celltdBody cell.
data-table-DataTable admin shell root (non-embedded).
index-table-Embedded table slot used by DataTable embedded mode.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@byronwade/tableregistryInstalled through the byronwade/ui registry.
@byronwade/checkboxregistryInstalled through the byronwade/ui registry.
@byronwade/bulk-action-barregistryInstalled through the byronwade/ui registry.
@byronwade/skeletonregistryInstalled through the byronwade/ui registry.
@byronwade/buttonregistryInstalled through the byronwade/ui registry.
@byronwade/empty-stateregistryInstalled through the byronwade/ui registry.
@byronwade/index-filtersregistryInstalled through the byronwade/ui registry.
@byronwade/segmented-controlregistryInstalled through the byronwade/ui registry.
@byronwade/data-tableregistryInstalled through the byronwade/ui registry.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Table primitiveregistry/ui/table.tsx
DataTable compositeregistry/components/data-table.tsx
Default examplecontent/examples/table/default.tsx
Admin data table examplecontent/examples/table/admin-index.tsx