mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Port Remocn UI primitives into installable HyperFrames snippets. Add a first transitions.dev-inspired primitive set for agent-friendly motion patterns.
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
---
|
|
title: "Toggle Group"
|
|
description: "A segmented toggle group primitive with sliding active background and icon/text buttons"
|
|
---
|
|
|
|
# Toggle Group
|
|
|
|
A segmented toggle group primitive with sliding active background and icon/text buttons
|
|
|
|
`ui-primitive` `remocn-port` `toggle-group` `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-group.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/toggle-group.png" autoPlay muted loop playsInline />
|
|
|
|
## Install
|
|
|
|
<CodeGroup>
|
|
|
|
```bash Terminal
|
|
npx hyperframes add toggle-group
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
## Details
|
|
|
|
| Property | Value |
|
|
| --- | --- |
|
|
| Type | Component |
|
|
|
|
## Files
|
|
|
|
| File | Target | Type |
|
|
| --- | --- | --- |
|
|
| `toggle-group.html` | `compositions/components/toggle-group.html` | hyperframes:snippet |
|
|
|
|
## Usage
|
|
|
|
Open `compositions/components/toggle-group.html` and paste its contents into your composition. See the comment header in the file for detailed instructions.
|