Inputs
Spring layout toggle
A switch whose knob is aligned to one end of the track by layout alone and springs between the two measured positions whenever the state flips.
Using Spring layout toggle
A switch whose knob is aligned to one end of the track by layout alone and springs between the two measured positions whenever the state flips.
Try the live preview with a pointer and keyboard, then check focus visibility and the narrow layout in your own page. Use the plate number or slug when asking your coding agent to fetch this component.
Props: on, bounce, size, label, accent
Which frameworks are available?
The catalog lists these versions: react, vue, svelte, astro, html. The live preview on this page runs React.
How do I access the implementation?
The code, framework versions and installation commands are available in the workbench above.