# Shadcn Toggle Components

A two-state button that can be either on or off. All toggle examples conform to Radix UI and Base UI state conventions.

- Page: https://shadcnuikit.com/components/toggle
- Variants: 7 (7 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Variant 1](https://shadcnuikit.com/components/toggle/1) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle1`)
- [Variant 2](https://shadcnuikit.com/components/toggle/2) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle2`)
- [Variant 3](https://shadcnuikit.com/components/toggle/3) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle3`)
- [Variant 4](https://shadcnuikit.com/components/toggle/4) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle4`)
- [Variant 5](https://shadcnuikit.com/components/toggle/5) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle5`)
- [Single](https://shadcnuikit.com/components/toggle/6) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle6`)
- [Multiple](https://shadcnuikit.com/components/toggle/7) (Free, install: `npx shadcn@latest add @shadcnuikit/toggle7`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)