# Toggle

> A collection of customizable toggle switch components built with React and Tailwind CSS.  Features - Minimal and Orange toggle variants - Dark mode support - Smooth transitions and animations - Fully accessible with keyboard navigation - TypeScript support with proper types - Follows shadcn/ui component patterns  Variants  Minimal Toggle A simple toggle switch with green accent colors and dark mode support. Features a sliding circle indicator and smooth transitions.  Orange Toggle A more elaborate toggle with orange accent colors and hover effects. Includes a floating animation and custom border styling.

- Author: [Edil Ozi](https://21st.dev/@Edil-ozi)
- Library: [Edil Ozi](https://21st.dev/@Edil-ozi/library/edil-ozi)
- License: mit
- Tags: Toggle
- Live preview: https://21st.dev/@Edil-ozi/components/toggle

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Edil-ozi/toggle?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/toggle.md
