Command
A command is like a button with a twist, it opens a menu of options. It's a cooler version of a combobox, ideal for command palettes, menus, and more.
Installation
Basic
Note that if your Command.Item
has an Icon, you should wrap the label with Command.Label
and pass the textValue
prop so it can be filtered by search.
Preview
Code
Collection and Section
Preview
Code
Trigger by Keyboard
Preview
Code
Danger
Preview
Code
Controlled
Use it like a Menu or ListBox.
Preview
Code
Asycn Loading
Preview
Code
Action on Select
<Command.Item onAction={() => console.log('Hello World!')} />