Component libraryFunnel chart
Funnel chart
ProCompare ordered stage counts with exact values, proportional funnel shapes, and explicit unknown or increasing-count states.
npx shadcn@latest add @tidal-pro/funnel-chartInstallation
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/funnel-chart.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-owned stages contain unique nonblank IDs/labels, finite nonnegative values or null, and optional detail/statistic content. Up to30 stages. selectedId is null or an existing stage. Native stage buttons propose selection after caller-first unprevented clicks, with direct native props/refs and disabled state. Button role and accessible name remain owned; missing, boolean or blank titles fail visibly while numeric zero remains valid. Exact values default to String, with optional formatter. Shape widths share one finite maximum; the next stage determines the lower edge, and a missing value remains explicitly unknown. Increasing counts show a visible comparability warning rather than a misleading conversion rate. No rates, losses, financial results or cohort equivalence are inferred. A persistent labelled root recovers focus when the previously focused owned button disappears or becomes disabled, only while focus remains on that exact source or body. Unrelated consumer focus is preserved. Native section props/ref, numeric-zero content, localized messages, h2-h6 hierarchy, narrow container stacking, RTL, reduced motion and forced colors are supported. No collection, analytics, request or persistence occurs.
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.