fn
getSlashItems
Build slash-menu items from the registry, filtered by `query` against each block's title and keywords. Data-driven: any newly registered block with `meta` shows up automatically.
Signature
ts
export function getSlashItems(registry: Registry, query = ''): SlashItem[]{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
registry | Registry | — |
query? | string | — |
Returns
SlashItem[]