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/checkbox.md
1# Checkbox23Selection control with indeterminate state45**Parts:** `CheckboxGroupRoot`, `CheckboxRoot`, `CheckboxIndicator`67## CheckboxRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"button"` |13| `asChild` | `boolean` | - |14| `checked` | `boolean \| "indeterminate"` | - |15| `defaultChecked` | `boolean` | - |16| `disabled` | `boolean` | - |17| `id` | `string` | - |18| `name` | `string` | - |19| `required` | `boolean` | - |20| `value` | `string` | `"on"` |2122### Emits23| Event | Payload |24|-------|---------|25| `update:checked` | `[value: boolean]` |2627### Slots28| Slot | Type |29|------|------|30| `checked` | `false \| true \| "indeterminate"` |3132## CheckboxIndicator3334### Props35| Prop | Type | Default |36|------|------|---------|37| `as` | `AsTag \| Component` | `"span"` |38| `asChild` | `boolean` | - |39| `forceMount` | `boolean` | - |40