API / @aionbuilders/nabu/ui

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

Props of SlashMenu
PropTypeDefaultDescription
engineNabun/a

The editor this component works on (a Nabu instance).

commandsoptionalSlashCommand[][]n/a
messagesoptionalSlashMenuMessages{}n/a

Source: src/lib/ui/SlashMenu.svelte