# `m-sidebar-expandable-item`

SidebarExpandableItem is a component that renders a sidebar item which can either expand to show a nested submenu or display a floating menu when the sidebar is collapsed. It supports optional icons, keyboard navigation, and accessibility attributes, and allows for custom submenu items via slots.

## Props

| Name | Description | Type | Default |
|------|-------------|------|---------|
| `id` | Identifier used for listbox controlling. | `string` | `crypto.randomUUID()` |
| `label*` | The text displayed for the sidebar item in its expanded state. | `string` |   |
| `menulabel*` | The title shown at the top of the floating menu when the sidebar is collapsed. | `string` |   |

## Slots

| Name | Description |
|------|-------------|
| `icon` | Use this slot to display an icon alongside the sidebar item. |
| `default` | Contains one or more SidebarNavItem components used to render the submenu items. |

