ThatDesignUIOriginalInteractive preview
Pricing section with billing toggle
Three plans with a sliding monthly / yearly switch, prices that roll in when the period changes, and a featured dark plan with a soft gradient glow.
- Category
- Pricing
- Platform
- Responsive
Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Yearly state
Use this component
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/pricing-section.json2. Use it
Every prop is optionalapp/page.tsx
import PricingSection from "@/components/pricing-section";
export default function Page() {
return <PricingSection />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A centered section on #fafaf9: a small 'Pricing' pill, a 44px semibold headline, a muted subline, then a 44px-tall white pill switch (Monthly | Yearly with a lime '−20%' badge) whose black thumb slides between the options.
- Three cards in a row (stacked on phones): Starter and Team are white with a light border; Pro is near-black (#0b0b0f) with a 'Most popular' tag and a blurred lime-cyan-violet gradient glow behind it that breathes slowly.
- Each card shows a 44px price with '/ month', a line under it ('$228 billed yearly', 'Billed monthly' or 'Free forever'), a full-width button and a checklist of features with round black check marks.
- Changing the period rolls each price up into place; a line under the cards states the yearly saving.
How it behaves
- Clicking Monthly changes Pro from $19 to $24 and Team from $39 to $49; the line under each price updates too.
- The switch is a radiogroup: Left/Right arrows flip it and aria-checked follows the selection.
- The price roll and the glow stop under reduced motion; the prices still change.
- At 375px the three cards stack and nothing scrolls sideways.



