Menubar
Application commands in familiar grouped menus.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Menubar } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Menubar } from 'fractalsvelte';
</script>
<Menubar menus={menus} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
menus | Menu[] | - | Top-level menus and their items. |
onchange | (value: string) => void | - | Called when the value changes. |
