Skip to content

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 Documentation

Import

Terminal window
import { Command } from "@aeonkit/react";

Usage

Options

Example Options

Terminal window
const texas = [
{
label: "Houston",
value: "houston",
},
]
const california = [
{
label: "Los Angeles",
value: "los-angeles",
},
]

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.

Props

API Interface: CommandProps