Ink Bloom Toggle

Track fills with a blooming ink blot when on.

Try it: Click — ink blooms across the track.

Installation

Install with the shadcn CLI:

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

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

Usage

import { InkBloomToggle } from '@/components/ui/ink-bloom-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