export const title = "Toggle field components"
export const description = "Free and open-source React toggle field components built for modern applications and websites. These toggle fields are built using React Aria and styled with Tailwind CSS."
export const links = {
github: "https://github.com/untitleduico/react/tree/main/components/base/toggle",
rac: "https://react-spectrum.adobe.com/react-aria/Switch.html"
}
import * as Demos from "@/components/base/toggle/toggle.demo.tsx";
## Installation
You can add this Toggle component using our CLI or manually:
```bash
npx untitledui@latest add toggle
```
Copy the files below into your project:
Great! Now you can start using the toggle components in your project by just copy/pasting our examples below.
## Toggle examples
Below are examples and variations of this toggle component:
### Base {{ tocOnly:true }}
### With label {{ tocOnly:true }}
### With label and hint {{ tocOnly:true }}
### Disabled {{ tocOnly:true }}
### Sizes {{ tocOnly:true }}
### Slim {{ tocOnly:true }}
### Slim with label and hint {{ tocOnly:true }}