MenuBar2
A horizontal list of menu items, often positioned at the top of a window.
Code
<script lang="ts">
import { MenuBar } from '@geoffcox/sterling-svelte';
</script>
<MenuBar2>
<!-- <MenuItem> ... -->
</MenuBar>
Members
| Property Name | Type | Bindable | Default | Comment |
|---|
| onClose | (value: string) => void | no | |
| onOpen | (value: string) => void | no | |
| onSelect | (value: string) => void | no | |
Considerations
- MenuBar2 uses Popover2.
- Includes HTMLDivElement props, events, and methods.
Anatomy
<div class="sterling-menu-bar-2">
{@render children()}
</div>