Switch

Plain animated boolean switch.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/switch.json

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

Usage

import { Switch } from '@/components/ui/switch'
  • Checkbox

    Checkbox with optional label.

  • Textarea

    Multi-line text input.

  • Tabs

    Keyboard-friendly tabbed panels.

  • Input

    Accessible text field with focus ring.

  • Accordion

    Expandable sections with motion.

  • Card

    Composable surface with hairline ring and layered shadow; default, raised, glass and outline variants.

See all 18 Core components