Search Button

A button styled as a search field, for opening a search palette (an RzCommandDialog with a Shortcut). Give it the handler that opens the palette.

Example

Source
<RzSearchButton Label="Search the docs" x-on:click="$dispatch('docs:open-search')" />

<RzCommandDialog EventTriggerName="docs:open-search" Shortcut="k" ItemsUrl="/api/search" ServerFiltering="true">
    ...
</RzCommandDialog>

Parameters

ParameterTypeDefaultDescription
Labelstring?Localized "Search"The text on the button, also its accessible name.