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/dialog.md
1# Dialog23Modal dialog45**Parts:** `DialogRoot`, `DialogTrigger`, `DialogPortal`, `DialogOverlay`, `DialogContent`, `DialogTitle`, `DialogDescription`, `DialogClose`67## DialogRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `defaultOpen` | `boolean` | `false` |13| `modal` | `boolean` | `true` |14| `open` | `boolean` | - |1516### Emits17| Event | Payload |18|-------|---------|19| `update:open` | `[value: boolean]` |2021### Slots22| Slot | Type |23|------|------|24| `open` | `boolean` |2526## DialogTrigger2728### Props29| Prop | Type | Default |30|------|------|---------|31| `as` | `AsTag \| Component` | `"button"` |32| `asChild` | `boolean` | - |3334## DialogPortal3536### Props37| Prop | Type | Default |38|------|------|---------|39| `disabled` | `boolean` | - |40| `forceMount` | `boolean` | - |41| `to` | `string \| HTMLElement` | - |4243## DialogOverlay4445### Props46| Prop | Type | Default |47|------|------|---------|48| `as` | `AsTag \| Component` | `"div"` |49| `asChild` | `boolean` | - |50| `forceMount` | `boolean` | - |5152## DialogContent5354### Props55| Prop | Type | Default |56|------|------|---------|57| `as` | `AsTag \| Component` | `"div"` |58| `asChild` | `boolean` | - |59| `disableOutsidePointerEvents` | `boolean` | - |60| `forceMount` | `boolean` | - |61| `trapFocus` | `boolean` | - |6263### Emits64| Event | Payload |65|-------|---------|66| `closeAutoFocus` | `[event: Event]` |67| `escapeKeyDown` | `[event: KeyboardEvent]` |68| `focusOutside` | `[event: FocusOutsideEvent]` |69| `interactOutside` | `[event: PointerDownOutsideEvent \| FocusOutsideE...` |70| `openAutoFocus` | `[event: Event]` |71| `pointerDownOutside` | `[event: PointerDownOutsideEvent]` |7273## DialogTitle7475### Props76| Prop | Type | Default |77|------|------|---------|78| `as` | `AsTag \| Component` | `"h2"` |79| `asChild` | `boolean` | - |8081## DialogDescription8283### Props84| Prop | Type | Default |85|------|------|---------|86| `as` | `AsTag \| Component` | `"p"` |87| `asChild` | `boolean` | - |8889## DialogClose9091### Props92| Prop | Type | Default |93|------|------|---------|94| `as` | `AsTag \| Component` | `"button"` |95| `asChild` | `boolean` | - |96