Vibe UI
Initializing Vibe UI System...

Toggle

A two-state button component that can be pressed or active, designed to capture boolean actions.

Toggle

A two-state button component that can be pressed or active, designed to capture boolean actions.

Preview

Installation

pnpm dlx vibe-ui-kit@latest add toggle

Variations

Vibe UI's Toggle component supports multiple visual style presets to match your application's theme:

Examples

Icon-Only Actions

A row of border-less or circular shape variations for toggles containing only symbols:

Props

PropTypeDefaultDescription
variant'default' | 'glass' | 'retro' | 'glow' | 'cyberpunk''default'The visual theme preset style of the Toggle control.
size'default' | 'sm' | 'lg''default'The button size variation.
pressedbooleanundefinedThe controlled active state of the button.
onPressedChange(pressed: boolean) => voidundefinedEvent handler triggered when the active state changes.

Contributors

Theme Customizer

8px
@theme { --radius: 0.5rem; --glass-blur: 8px; }
Changes apply instantly to this documentation workspace.