R
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

ParameterTypeDescription
registryRegistry
query?string

Returns

SlashItem[]