Skip to content
OwnlyPlans

Element

Pricing Period Toggle

Monthly/yearly switch with a sliding thumb, a savings badge and prices that count to the new value.

Remix

Preview and code

Markdown
Toggles and inputs

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/pricing-period-toggle.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

The small control that decides how people read your pricing page. The thumb slides, the price rolls to its new value and the per-period label updates, so the change is obvious without a page jump. It is a real radio group, so keyboard and screen reader users get the same control.

The prices in the preview are placeholders: pass your own.

Your AI tool
Starter prompt

		

Download the plan