Menu link

ID: mantra_starter:menu_link

A single menu item. Rendered by mantra_starter:menu, and recurses back into it for any sub menu.

Status: experimental

Name Label Type Description
item Item Unknown ⚠️ {"type":"object"}
menu_level Menu level Number Nesting depth of the list this item sits in.
direction Direction Enum Which way the menu runs, passed straight down from mantra_starter:menu so that a sub menu rendered from here is handed it again. It is also what says whether this item's sub menu is disclosed: `horizontal` makes it a flyout and so renders the expand button, `vertical` leaves it open and inline unless `collapsible` says otherwise.
Default: "horizontal"
Allowed values: horizontal, vertical
collapsible Collapsible Boolean Whether a vertical menu's sub menus start closed, passed straight down from mantra_starter:menu, which has already discarded it for a horizontal menu. When set, this item gets the expand button a flyout would have.
Default: false
link_font_size Link font size Enum Size of this item's link, from the theme's type scale, passed straight down from mantra_starter:menu so that every level of the menu is set together. `inherit`, the default, adds no class and leaves the link at whatever size it sits in.
Default: "inherit"
Allowed values: inherit, xs, sm, base, lg, xl

Default

Expanded