Component libraryPivot table

Pivot table

Pro

Explore supplied aggregates by row group and column with exact totals and expandable segments.

npx shadcn@latest add @tidal-pro/pivot-table
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/pivot-table

Import components/ui/tidal.css, components/ui/pivot-table.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-supplied unique columns and rows contain finite numbers, null, or missing values. Rows may identify a parent and supply an explicit total; totals and grandTotal are never calculated or inferred. Up to80 rows and12 columns, acyclic known parents, known selection and expanded groups are validated. Native buttons propose expansion and cell selection after caller-first unprevented events, with owned names, native availability and controlled callbacks. Desktop uses semantic table row/column headers and a locally scrolling surface; narrow containers use per-row description lists. Arrow keys move among available cells, Up/Down preserve the column, Home/End choose first/last, with direction-aware horizontal movement and IME/modifier guards. Exact zero remains0, null or missing means No data. Removed/hidden/disabled owned focus recovers only from source/body to the persistent root. Native root props/ref with React19 cleanup, cell/expand/export native props, optional consumer export callback, translated labels, h2-h6 headings, neutral tokens, RTL and reduced motion are supported. No aggregation, data fetching, file generation, persistence or spreadsheet engine is included.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.