Menu
A dropdown menu component for displaying a list of actions or options.
Basic Usage
Section titled “Basic Usage”Default Menu
Basic menu with items.
<ae-menu><ae-menu-item>Edit</ae-menu-item><ae-menu-item>Duplicate</ae-menu-item><ae-menu-item>Delete</ae-menu-item></ae-menu>With Icons
Section titled “With Icons”Menu with Icons
Add icons to menu items.
<ae-menu><ae-menu-item> <svg slot="prefix" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> <path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/> <path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/> </svg> Edit</ae-menu-item><ae-menu-item> <svg slot="prefix" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> <rect x="9" y="9" width="13" height="13" rx="2" ry="2"/> <path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/> </svg> Duplicate</ae-menu-item><ae-menu-divider></ae-menu-divider><ae-menu-item variant="danger"> <svg slot="prefix" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> <path d="M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/> </svg> Delete</ae-menu-item></ae-menu>Disabled Items
Section titled “Disabled Items”Disabled Items
Disable specific menu items.
<ae-menu><ae-menu-item>Available</ae-menu-item><ae-menu-item disabled>Unavailable</ae-menu-item><ae-menu-item>Also Available</ae-menu-item></ae-menu>With Dividers
Section titled “With Dividers”Menu Sections
Use dividers to group related items.
<ae-menu><ae-menu-item>New File</ae-menu-item><ae-menu-item>Open</ae-menu-item><ae-menu-item>Save</ae-menu-item><ae-menu-divider></ae-menu-divider><ae-menu-item>Print</ae-menu-item><ae-menu-item>Export</ae-menu-item><ae-menu-divider></ae-menu-divider><ae-menu-item>Close</ae-menu-item></ae-menu>Installation
Section titled “Installation”pnpm add @aetherui-kit/corenpm install @aetherui-kit/coreImport
Section titled “Import”import { defineAeMenu, defineAeMenuItem, defineAeMenuDivider } from '@aetherui-kit/core/menu';defineAeMenu();defineAeMenuItem();defineAeMenuDivider();Menu Item Props
Section titled “Menu Item Props”| Name | Type | Default | Description |
|---|---|---|---|
disabled |
boolean |
false |
Disabled state |
variant |
'default' | 'danger' |
'default' |
Visual variant |
Menu Item Slots
Section titled “Menu Item Slots”| Name | Description |
|---|---|
| default | Item label |
prefix |
Content before label (icon) |
suffix |
Content after label |
Events
Section titled “Events”| Name | Detail | Description |
|---|---|---|
ae-menu-select |
{ value: string } |
Fired when item selected |
CSS Parts
Section titled “CSS Parts”| Name | Description |
|---|---|
base |
Menu container |
item |
Menu item |
divider |
Divider line |