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.json

Or, 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

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

See all 15 Toggles components