Dropdown Menu

A menu of actions anchored to a trigger.

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 { DropdownMenu } from 'fractalsvelte';
</script>

Usage

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

<DropdownMenu />

Props

PropTypeDefaultDescription
labelstring'Actions'Accessible label for the trigger.
itemsItem[]-The list of items to render.
valuestring''The selected value. Supports bind:.
onchange(value: string) => void-Called when the value changes.