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 fractalsvelteImport
<script lang="ts">
import { DropdownMenu } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { DropdownMenu } from 'fractalsvelte';
</script>
<DropdownMenu />Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | 'Actions' | Accessible label for the trigger. |
items | Item[] | - | The list of items to render. |
value | string | '' | The selected value. Supports bind:. |
onchange | (value: string) => void | - | Called when the value changes. |
