Gooey Toggle

A switch whose knob is liquid: it stretches, drips and merges like mercury.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Three blobs move with different easings and delays; an SVG goo filter (blur + alpha threshold) fuses them into one liquid shape while they travel.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/gooey-toggle.json

Uses the shadcn CLI. It creates components/pickui/gooey-toggle.tsx and installs nothing else.

Usage

example.tsx
import { GooeyToggle } from "@/components/pickui/gooey-toggle";

export default function Example() {
  return <GooeyToggle />;
}
SettingsTheme switchFeature flags

Under the hood

The details that make it feel right, and that a one-line prompt usually misses:

  • 01The goo filter is feGaussianBlur + an feColorMatrix alpha threshold.
  • 02Staggered easings on three blobs create the stretch-and-split.

Props

PropTypeDefaultDescription
checked / defaultCheckedboolean—State.
onChange(checked) => void—Change handler.
labelstring"Liquid mode"Visible + accessible label.
colorstring"#4ade80"On color.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • role=switch with aria-checked; keyboard via native button.