mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
39 lines
997 B
Plaintext
39 lines
997 B
Plaintext
---
|
|
title: "Toggle"
|
|
description: "A tactile toggle button with distinct pressed and unpressed states"
|
|
---
|
|
|
|
# Toggle
|
|
|
|
A tactile toggle button with distinct pressed and unpressed states
|
|
|
|
`ui-primitive` `remocn-port` `toggle` `control`
|
|
|
|
<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/toggle.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/toggle.png" autoPlay muted loop playsInline />
|
|
|
|
## Install
|
|
|
|
<CodeGroup>
|
|
|
|
```bash Terminal
|
|
npx hyperframes add toggle
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
## Details
|
|
|
|
| Property | Value |
|
|
| --- | --- |
|
|
| Type | Component |
|
|
|
|
## Files
|
|
|
|
| File | Target | Type |
|
|
| --- | --- | --- |
|
|
| `toggle.html` | `compositions/components/toggle.html` | hyperframes:snippet |
|
|
|
|
## Usage
|
|
|
|
Open `compositions/components/toggle.html` and paste its contents into your composition. See the comment header in the file for detailed instructions.
|