# MenuItem An actionable item for a `MenuList`, rendered as a button or link. ## Usage Use inside `MenuList`. ```svelte Item ``` ## Anatomy The `class` attribute values represent part names. Other attributes represent their corresponding props. ```svelte {#if href} {children} {:else} {/if} ``` When embedded in `MenuList`, `variant` defaults to the menu's and `styling` falls back to it; activating the item closes the menu after `onselect`. The context can also carry the menu `orientation` for related descendants. Disabled anchor items are non-navigable. ## Props | Name | Type | Default | Description | |---|---|---|---| | `children*` | `Snippet` | - | Item content; receives the variant as its argument | | `href` | `string` | - | Renders an `` instead of a `