Component libraryPricing section
Pricing section
ProA responsive SaaS plan comparison section with explicit consumer-owned prices, billing options and native actions.
npx shadcn@latest add @tidal-pro/pricing-sectionInstallation
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/pricing-section.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
Root forwards native section attributes/ref/style. Required title, plans and billingOptions; arbitrary plan arrays drive both the plan grid and comparison cells. Each plan supplies explicit prices keyed by billing option id, features and a native button or anchor action. Features sharing an ID define one comparison row: use a consistent label and put plan-specific limits in detail. billing/defaultBilling control the selected billing option; onBillingChange receives the supplied option. A controlled billing value without onBillingChange is rendered as a native disabled read-only selector. selectedPlanId/defaultSelectedPlanId control local plan selection; selected plans expose their state in the accessible article name; onSelectedPlanChange and onPlanSelect receive the selected plan, with onPlanSelect also receiving the active billing option. Plan button actions forward native button props/ref/type/disabled/form attributes; link actions forward native anchor props/ref/href and prevent activation when disabled or aria-disabled=true. The component renders a plan comparison grid with readable inclusion states, keeps all values consumer-owned, uses no pricing math, requests, storage or timers, and honors reduced motion.
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.