sterling-svelte  1.0.4
A modern, accessible, lightweight UI component library for Svelte.

MenuBar

A horizontal list of menus often at the top of a window.

Types

export type MenuBarContext = {
  openPreviousMenuBarItem?: () => void;
  openNextMenuBarItem?: () => void;
};

Props

HTMLDivElement props are included.

/** Additional class names to apply. */
export let variant: string = '';

Events

HTMLDivElement events are included.

dispatch('close', { value });
dispatch('open', { value });
dispatch('select', { value });

Methods

HTMLDivElement blur, and focus methods are included.

Anatomy

<div class="sterling-menu-bar">
  <slot {variant} />
</div>

Playground