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/navigation-menu.md
1# Navigation Menu23Site navigation menu45**Parts:** `NavigationMenuRoot`, `NavigationMenuList`, `NavigationMenuItem`, `NavigationMenuTrigger`, `NavigationMenuContent`, `NavigationMenuLink`, `NavigationMenuIndicator`, `NavigationMenuViewport`, `NavigationMenuSub`67## NavigationMenuRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"nav"` |13| `asChild` | `boolean` | - |14| `defaultValue` | `string` | - |15| `delayDuration` | `number` | `200` |16| `dir` | `"ltr" \| "rtl"` | - |17| `disableClickTrigger` | `boolean` | `false` |18| `disableHoverTrigger` | `boolean` | `false` |19| `modelValue` | `string` | - |20| `orientation` | `"vertical" \| "horizontal"` | `"horizontal"` |21| `skipDelayDuration` | `number` | `300` |2223### Emits24| Event | Payload |25|-------|---------|26| `update:modelValue` | `[value: string]` |2728### Slots29| Slot | Type |30|------|------|31| `modelValue` | `string` |3233## NavigationMenuList3435### Props36| Prop | Type | Default |37|------|------|---------|38| `as` | `AsTag \| Component` | `"ul"` |39| `asChild` | `boolean` | - |4041## NavigationMenuItem4243### Props44| Prop | Type | Default |45|------|------|---------|46| `as` | `AsTag \| Component` | `"li"` |47| `asChild` | `boolean` | - |48| `value` | `string` | - |4950## NavigationMenuTrigger5152### Props53| Prop | Type | Default |54|------|------|---------|55| `as` | `AsTag \| Component` | `"button"` |56| `asChild` | `boolean` | - |57| `disabled` | `boolean` | - |5859## NavigationMenuContent6061### Props62| Prop | Type | Default |63|------|------|---------|64| `as` | `AsTag \| Component` | `"div"` |65| `asChild` | `boolean` | - |66| `disableOutsidePointerEvents` | `boolean` | - |67| `forceMount` | `boolean` | - |6869### Emits70| Event | Payload |71|-------|---------|72| `escapeKeyDown` | `[event: KeyboardEvent]` |73| `focusOutside` | `[event: FocusOutsideEvent]` |74| `interactOutside` | `[event: PointerDownOutsideEvent \| FocusOutsideE...` |75| `pointerDownOutside` | `[event: PointerDownOutsideEvent]` |7677## NavigationMenuLink7879### Props80| Prop | Type | Default |81|------|------|---------|82| `active` | `boolean` | - |83| `as` | `AsTag \| Component` | `"a"` |84| `asChild` | `boolean` | - |8586### Emits87| Event | Payload |88|-------|---------|89| `select` | `[payload: CustomEvent<{ originalEvent: Event; }>]` |9091## NavigationMenuIndicator9293### Props94| Prop | Type | Default |95|------|------|---------|96| `as` | `AsTag \| Component` | `"div"` |97| `asChild` | `boolean` | - |98| `forceMount` | `boolean` | - |99100## NavigationMenuViewport101102### Props103| Prop | Type | Default |104|------|------|---------|105| `as` | `AsTag \| Component` | `"div"` |106| `asChild` | `boolean` | - |107| `forceMount` | `boolean` | - |108109## NavigationMenuSub110111### Props112| Prop | Type | Default |113|------|------|---------|114| `as` | `AsTag \| Component` | `"div"` |115| `asChild` | `boolean` | - |116| `defaultValue` | `string` | - |117| `modelValue` | `string` | - |118| `orientation` | `"vertical" \| "horizontal"` | `"horizontal"` |119120### Emits121| Event | Payload |122|-------|---------|123| `update:modelValue` | `[value: string]` |124125### Slots126| Slot | Type |127|------|------|128| `modelValue` | `string` |129