Weather Vane Toggle

Vane pivots; grain shifts with wind.

Try it: Toggle — vane pivots with the wind.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/weather-vane-toggle.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/weather-vane-toggle. You can also copy the source into components/ui/weather-vane-toggle.tsx (view on GitHub).

Usage

import { WeatherVaneToggle } from '@/components/ui/weather-vane-toggle'

Props

Component props
PropTypeDefaultNotes
checkedboolean—Controlled on/off state.
defaultCheckedbooleanfalseUncontrolled initial state.
onCheckedChange(checked: boolean) => void—Fires when the value flips.
disabledbooleanfalseDisables pointer and keyboard.
  • Theme Reveal Toggle

    A sky-to-night switch: the sun rolls behind a crescent, clouds give way to stars, and the theme change blooms out of the switch as a circular View Transition reveal. Instant swap under reduced motion.

  • Tideglass Toggle

    Waterline rises and falls in a glass pane.

  • Pull-Cord Lamp Toggle

    A pendant lamp switched by its pull cord: drag the bead down until it clicks, the cord snaps back elastically and sways, the shade rocks on its wire and the bulb warms into a cone of light with…

  • Petal Circuit Toggle

    Petals fold inward to complete a circuit.

  • Watchful Eye Toggle

    A soft eye opens and closes; the pupil tracks when open.

  • Moth Lantern Toggle

    A moth settles into lantern glow when on.

See all 15 Toggles components