A searchable list of commands.
Open a command palette as a modal for quick access to frequently used commands.
The root command palette component that wraps the input and items.
Attribute
|
Description
|
---|---|
data-flux-command |
Applied to the root element for styling and identification.
|
Prop
|
Description
|
---|---|
clearable |
If true, displays a clear button when the input has content.
|
closable |
If true, displays a close button to dismiss the command palette.
|
icon |
Name of the icon displayed at the start of the input. Default: magnifying-glass.
|
placeholder |
Placeholder text displayed when the input is empty.
|
Prop
|
Description
|
---|---|
icon |
Name of the icon displayed at the start of the item.
|
icon:variant |
Visual style of the icon. Options: outline (default), solid, mini, micro.
|
kbd |
Keyboard shortcut hint displayed at the end of the item (e.g., ⌘K).
|
Attribute
|
Description
|
---|---|
data-flux-command-item |
Applied to the item element for styling and identification.
|