MenuItemDisplay
The default content for a <MenuItem>
Code
<script lang="ts">
import { MenuItemDisplay } from '@geoffcox/sterling-svelte';
</script>
<MenuItemDisplay>
sterling-svelte
</MenuItemDisplay>
Members
| Property Name | Type | Default | Comment | | checked | boolean | false |
| disabled | boolean | false |
| hasChildren | boolean | false |
| isMenuBarItem | boolean | false |
| menuItemRole | MenuItemRole | 'menuitem' |
| variant | string | '' |
Considerations
- Includes HTMLDivElement props, event, and methods
Anatomy
<div class="sterling-menu-item-display">
<div class="check" />
<div class="content">
<slot {checked} {disabled} {hasChildren} {isMenuBarItem} {menuItemRole} {variant} />
</div>
<div class="shortcut">
<slot name="shortcut" {checked} {disabled} {isMenuBarItem} {menuItemRole} {variant} />
</div>
<div class="chevron" />
</div>