Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build accessible, unstyled Vue 3 components using Reka UI (formerly Radix Vue) with WAI-ARIA compliance.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/toggle.md
1# Toggle23Single state button toggle45**Parts:** `Toggle`67## Toggle89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"button"` |13| `asChild` | `boolean` | - |14| `defaultValue` | `boolean` | - |15| `disabled` | `boolean` | `false` |16| `pressed` | `boolean` | - |1718### Emits19| Event | Payload |20|-------|---------|21| `update:pressed` | `[value: boolean]` |2223### Slots24| Slot | Type |25|------|------|26| `pressed` | `boolean` |27