Command Palette

Provide users with quick access to commands and actions within an application.

Alpine.js focus plugin is required, for more info check out Getting Started

Props

The available data properties for this component.

Property Default Description
openfalseSets the default command palette visibility
resetOnOpentrueIf set to 'true', the command palette will reset its existing search term or selected option when it opens
closeOnSelectiontrueIf set to 'true', the command palette will close when an option is selected
options[]An object array to populate the available options in the command palette. Values for 'id', 'label', 'command', 'icon' and 'shortcut' attributes have to be provided (with unique ids)