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/collapsible.md
1# Collapsible23Single collapsible panel45**Parts:** `CollapsibleRoot`, `CollapsibleTrigger`, `CollapsibleContent`67## CollapsibleRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"div"` |13| `asChild` | `boolean` | - |14| `defaultOpen` | `boolean` | `false` |15| `disabled` | `boolean` | - |16| `open` | `boolean` | - |1718### Emits19| Event | Payload |20|-------|---------|21| `update:open` | `[value: boolean]` |2223### Slots24| Slot | Type |25|------|------|26| `open` | `boolean` |2728## CollapsibleTrigger2930### Props31| Prop | Type | Default |32|------|------|---------|33| `as` | `AsTag \| Component` | `"button"` |34| `asChild` | `boolean` | - |3536## CollapsibleContent3738### Props39| Prop | Type | Default |40|------|------|---------|41| `as` | `AsTag \| Component` | `"div"` |42| `asChild` | `boolean` | - |43| `forceMount` | `boolean` | - |44