Skip to main content

Menu Item Component

warning

Components is not ready yet.

Figma

The glu-menu-label component represents an item in a menu, supporting different types such as labels, dropdowns, and buttons. It allows flexible content placement using slots.


Basic Usage

Result
Loading...
Live Editor
<div style={{ display: 'flex', gap: '1rem', alignItems: 'center' }}>
  <glu-menu-label type="label">
    Label Item
  </glu-menu-label>

  <glu-menu-label type="dropdown">
    <div>Dropdown Item</div>
    <div slot="dropdown-content">Dropdown Content</div>
  </glu-menu-label>

  <glu-menu-label type="button">
    <glu-button>Button Item</glu-button>
  </glu-menu-label>
</div>

Properties

PropertyAttributeDescriptionTypeDefault
hrefhrefURL to navigate to when clicking the label.stringundefined

Slots

SlotDescription
The text content of the menu label.

Built with StencilJS