Context Menu
A right-click menu of contextual actions.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 { ContextMenu } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { ContextMenu } from 'fractalsvelte';
</script>
<ContextMenu items={items}>Right-click me</ContextMenu>Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Item[] | - | The list of items to render. |
onchange | (value: string) => void | - | Called when the value changes. |
