JollyUI
  1. Docs
  2. components
  3. Toggle Button

Toggle Button

A toggle button allows a user to toggle a selection on or off, for example switching between two states or modes.

Installation

npx @sly-cli/sly add jolly-ui toggle

Note: Only the default style can be installed via CLI at the moment

Usage

import { Toggle } from "@/components/ui/toggle"
<Toggle>Toggle</Toggle>

Examples

Default

Outline

With Text

Small

Large

Disabled