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

Pour Toggle

FREE

Tip the bowl: a splash falls, and the new theme ripples out from where it lands.

React 19Tailwind 4added 2026-12-05
live preview · pour toggle
click to pour · alt-click for system

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 pour-toggle
  2. 02

    Serve it

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

Props

PROPTYPEDEFAULTWHAT IT DOES
storageKeystring"theme"localStorage key that remembers the choice.
attributestring"data-theme"Attribute set on <html> to light or dark.
durationnumber1500Length of the splash and ripple, in ms.
sizenumber44Button size, in px.
onChange(theme) => void—Called after each switch.

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