SlashMenu
Component Stability: stable
The "/" menu: a filterable list of blocks to insert, anchored at the caret.
Usage
Svelte
<script>
import { SlashMenu } from '@aionbuilders/nabu/ui';
</script>
<SlashMenu {engine} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
engine | Nabu | n/a | The editor this component works on (a |
commandsoptional | SlashCommand[] | [] | n/a |
messagesoptional | SlashMenuMessages | {} | n/a |
Source: src/lib/ui/SlashMenu.svelte