Skip to content
Nana UI

Menu Label

View .md Download

A non-interactive section header inside a nana-menu.

Section Item
Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/menu-label";
<nana-menu style="max-width:220px">
<nana-menu-label>Section</nana-menu-label>
<nana-menu-item>Item</nana-menu-item>
</nana-menu>

Properties

PropertyAttributeTypeDefaultDescription
dividerbooleanfalseDraw a divider line above the label

Slots

SlotDescription
(default)Header text

CSS parts

PartDescription
::part(base)The header element
SlotDescription
(default)Header text
PartDescription
baseThe header element
Explore Menu Label interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook