Component libraryFeature comparison table
Feature comparison table
ProA semantic comparison section with consumer-owned columns, feature states, text values, and native column actions.
npx shadcn@latest add @tidal-pro/feature-comparison-tableInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/feature-comparison-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
title, accessible native table caption, consumer-owned columns and features are required. Columns require unique ids, visible labels and accessible labels, with optional descriptions, badges and native link/button actions. Features require unique ids, visible labels and a value record keyed by column id. Values are typed available, unavailable or text states; omitted entries render an explicit consumer-labelled Not specified state. Available/unavailable and no-action labels may be consumer-owned ReactNode values and preserve numeric zero. Link actions preserve href, modified navigation, native attributes/ref and explicit aria-disabled false; disabled or aria-disabled true links suppress caller handling and navigation. Button actions preserve native attributes/ref/form ownership/type(default button), disabled state and prevented-handler composition. Optional headingLevel, eyebrow, description, labels, emptyMessage, footer, table/scroll attributes and refs, and native section attributes/ref remain consumer-owned. The native table uses column and row headers, an accessible caption and an intentional horizontal region with a sticky first label column when overflow occurs. The component performs no pricing, checkout, purchase, request, account, storage, analytics or backend action.
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.