ComponentClient component

Command

A fast command menu and searchable action surface.

Installation

Preview

Usage

tsx
import {
  Command,
  CommandInput,
  CommandItem,
  CommandList,
} from "@/components/ui/command"

<Command>
  <CommandInput placeholder="Search commands..." />
  <CommandList>
    <CommandItem>Create project</CommandItem>
  </CommandList>
</Command>

API reference

PropTypeDefaultDescription
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.