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 fractalsvelte
Import
<script lang="ts">
	import { Menubar } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Menubar } from 'fractalsvelte';
</script>

<Menubar menus={menus} />

Props

PropTypeDefaultDescription
menusMenu[]-Top-level menus and their items.
onchange(value: string) => void-Called when the value changes.