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
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2

More in Pricing

View all
  • Pricing Section 1

    Pricing Section 1

    109
  • Toggle Pricing Cards

    Toggle Pricing Cards

    111
  • Executive Pricing Plan

    Executive Pricing Plan

    20
  • Single Pricing Card

    Single Pricing Card

    828
  • Pricing Section

    Pricing Section

    733
  • Pricing Card

    Pricing Card

    589
  • pricing section

    pricing section

    190
  • Pricing Card With Features

    Pricing Card With Features

    195