Mood Dial Toggle

Tiny face dial springs between two moods.

Try it: Click to rotate between moods.

Installation

Install with the shadcn CLI:

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

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

Usage

import { MoodDialToggle } from '@/components/ui/mood-dial-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