Fresh in the bowl: Lava Lamp, Dynamic Island and 9 moreSee what’s new →
bowls.dev

Spring Toggle

FREE

A switch with a little squish in its step.

React 19Tailwind 4motionadded 2026-11-28
live preview · spring toggle

Installation

Into your bowl in one line.

The CLI drops the source straight into your project. You own every line; there’s no package to update.

  1. 01

    Add it with the CLI

    $ npx bowls@latest add spring-toggle
  2. 02

    Or go manual: install the one dependency

    npm i motion
  3. 03

    Serve it

    Paste the source into components/bowls/spring-toggle.tsx and import it — the Code tab’s demo.tsx shows a full example.

Props

PROPTYPEDEFAULTWHAT IT DOES
labelstring—Accessible name for the switch.
checkedboolean—Controlled state.
defaultCheckedbooleanfalseInitial state when uncontrolled.
onCheckedChange(checked: boolean) => void—Called on every change.
size"sm" | "md" | "lg""md"Switch size.

Goes well with

More buttons →

Something missing?

Suggest a component

Seen an animation or interaction you’d love in the bowl? Tell us about it. No guarantees — but if it’s a fit, we’ll build it.

★ We’ll email you when it ships
esc