--- title: Switch description: Let users to turn on or off your marketing emails or notifications. lastUpdated: 09 Sep, 2025 links: api_reference: https://www.radix-ui.com/primitives/docs/components/switch#api-reference source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Switch.tsx ---

## Installation #### 1. Install dependencies: ```sh npm install @radix-ui/react-switch ```
#### 2. Copy the code 👇 into your project:


## Examples ### Default

### Disabled