Skip to content
OwnlyPlans

Element

Spring Toggle

An on/off switch whose knob stretches as it travels, then settles with a spring.

Remix

Preview and code

Markdown
Toggles and inputs

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/spring-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

A real button with role=”switch” and aria-checked, so keyboards and screen readers work out of the box.

Your AI tool
Starter prompt

		

Download the plan