MenuBar
A horizontal list of <MenuItem>s, often positioned at the top of a window
Code
<script lang="ts">
import { MenuBar } from '@geoffcox/sterling-svelte';
</script>
<MenuBar>
<!-- <MenuItem> ... -->
</MenuBar>
Members
| Property Name | Type | Default | Comment | | variant | string | '' |
| Event Name | Data | Comment | | close | value |
| open | value |
| selected | value |
Considerations
- Prefer using the Label component rather than the label produced by providing default slot content.
- Includes HTMLAnchorElement props, event, and methods
Anatomy
<div class="sterling-menu-bar">
<slot {variant} />
</div>