---
title: "Switch"
description: "A toggle switch primitive with track, thumb, and on/off state animation"
---
# Switch
A toggle switch primitive with track, thumb, and on/off state animation
`ui-primitive` `remocn-port` `switch` `toggle`
## Install
```bash Terminal
npx hyperframes add switch
```
## Details
| Property | Value |
| --- | --- |
| Type | Component |
## Files
| File | Target | Type |
| --- | --- | --- |
| `switch.html` | `compositions/components/switch.html` | hyperframes:snippet |
## Usage
Open `compositions/components/switch.html` and paste its contents into your composition. See the comment header in the file for detailed instructions.