Files
heygen-com__hyperframes/docs/catalog/components/switch.mdx
Miguel Ángel cf7db37697 feat(registry): add UI and transition primitives catalog
Port Remocn UI primitives into installable HyperFrames snippets.
Add a first transitions.dev-inspired primitive set for agent-friendly motion patterns.
2026-06-24 06:18:02 +00:00

39 lines
1006 B
Plaintext

---
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`
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/switch.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/switch.png" autoPlay muted loop playsInline />
## Install
<CodeGroup>
```bash Terminal
npx hyperframes add switch
```
</CodeGroup>
## 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.