amankaushik481

Pricing Toggle

Pricing

About

A Monthly/Yearly billing period switch for pricing pages, with a savings note underneath, built on a segmented control.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pricing Toggle to your project and fits it to your theme.

Code

How Pricing Toggle is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import * as React from "react";
import {
  PricingToggle,
  type BillingCadence,
} from "@/components/ui/pricing-toggle";

export default function PricingToggleDemo() {
  const [cadence, setCadence] = React.useState<BillingCadence>("monthly");
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center bg-bg p-8">
      <PricingToggle value={cadence} onChange={setCadence} />
    </div>
  );
}

More by amankaushik481

View all
  • Background Boxes

    Background Boxes

    7
  • Icon Button

    Icon Button

    7
  • Chip Filter

    Chip Filter

    7
  • Typing Text

    Typing Text

    5
  • Emoji Picker

    Emoji Picker

    4
  • Treemap Chart

    Treemap Chart

    3
  • File Dropzone

    File Dropzone

    2
  • Morphing Text

    Morphing Text

    2

More in Pricing

View all
  • Review Stack Pricing

    Review Stack Pricing

    8
  • Toggle Pricing Cards

    Toggle Pricing Cards

    106
  • Pricing Section

    Pricing Section

    720
  • Pricing Section

    Pricing Section

    216
  • Pricing Card

    Pricing Card

    585
  • pricing section

    pricing section

    187
  • Pricing Section 1

    Pricing Section 1

    106
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    212