Docs
Toggle

Toggle

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

Loading...

Installation

pnpm dlx shadcn@latest add toggle

Usage

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

Examples

Default

Loading...

Outline

Loading...

With Text

Loading...

Small

Loading...

Large

Loading...

Disabled

Loading...