Documentation
Components
Toggle

Toggle

A two-state button that can be either on or off.

Installation

npx shadcn@latest add https://exawizards.com/exabase/design/registry/toggle.json

Usage

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

API

See the Toggle – Radix Primitives (opens in a new tab) documentation.

Examples

Outline

With Text

Small

Large

Disabled