Skip to content

MenuOptions

Defined in: components/menu.ts:110

Options for menuButton and MainOptions.nav.

items: MenuEntry[]

Defined in: components/menu.ts:112

Items shown in the dropdown or sidebar nav.


optional button?: ButtonOptions

Defined in: components/menu.ts:121

Customize the trigger button rendered by menuButton. Defaults to a ☰ icon button. The click handler is managed internally.

When used as a nav in S.main(), this also customizes the ☰ the sidebar collapses into — which is an iconButton, so only icon, ariaLabel and attrs apply there.


optional dropdownAttrs?: string

Defined in: components/menu.ts:123

Aberdeen attr/style string on the floating dropdown panel.