Frameflip Toggle
Tiny illustrated card flips between two states.
Try it: Click to flip the frame.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/frameflip-toggle.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/frameflip-toggle. You can also copy the source into components/ui/frameflip-toggle.tsx (view on GitHub).
Usage
import { FrameflipToggle } from '@/components/ui/frameflip-toggle'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
checked | boolean | — | Controlled on/off state. |
defaultChecked | boolean | false | Uncontrolled initial state. |
onCheckedChange | (checked: boolean) => void | — | Fires when the value flips. |
disabled | boolean | false | Disables pointer and keyboard. |
Related Toggles components
- Moth Lantern Toggle
A moth settles into lantern glow when on.
- Pulsebeat Switch
Soft heartbeat pulse when on; flat when off.
- Petal Circuit Toggle
Petals fold inward to complete a circuit.
- Ink Bloom Toggle
Track fills with a blooming ink blot when on.
- Tideglass Toggle
Waterline rises and falls in a glass pane.
- Mood Dial Toggle
Tiny face dial springs between two moods.