Command
A command is a form element that allows the user to select one or more options from a set of choices. Uses CMDK for it’s implmentation.
CMDK DocumentationImport
Usage
Options
Example Options
Default
You can use the Command
component to create a command input with a list of options.
Austin
Dallas
Fort Worth
Houston
Los Angeles
Sacramento
San Antonio
San Diego
San Francisco
San Jose
Group
You can use the Command.Group
component to group multiple commands together.
Austin
Dallas
Fort Worth
Houston
San Antonio
Los Angeles
Sacramento
San Diego
San Francisco
San Jose
Props
API Interface: CommandProps
API Interface: CommandEmptyProps
API Interface: CommandGroupProps
- icon?
-
ReactNode
The icon to display.
- iconClassName?
-
string
The class name of the icon.
API Interface: CommandInputProps
API Interface: CommandItemProps
API Interface: CommandListProps
API Interface: CommandLoadingProps
API Interface: CommandSeparatorProps