Component
NavMenu
A topbar section that opens a menu of destinations.
import { NavMenu } from '@loidolt/theme-svelte';
Example
Selected: templates
Notes
activemarks the trigger witharia-current="page", not just a class.
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
label required | string | — | Trigger text. |
active | boolean | false | Marks this entry as the current section: styles the trigger and sets aria-current. |
align | Alignment | — | |
children | Snippet | — | |
class | string | — | class lands on the trigger; use menuClass for the popup. |
groupLabel | string | — | Heading above the items inside the popup. |
items | MenuItem<T>[] | — | |
menuClass | string | — | |
onOpenChange | (open: boolean) => void | — | |
onSelect | (value: T) => void | — | |
open bindable | boolean | false | |
side | Placement | — |
Plus the attributes of Omit<HTMLButtonAttributes, 'children' | 'class' | 'type'>, forwarded to the root element.