Back to Components
Display

Pricing Toggle

Segmented toggle for switching between billing cadences.

PropsUsage ExampleVariations

Billing

Save more when billed annually

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/pricing-toggle.tsx

Installation

Using shadcn CLI

npx shadcn add pricing-toggle --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Display Components