Command

A flexible and unstyled command palette component for React, designed for speed and composability.

cmdk lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/command.json

Examples


Dialog

Separator

Empty


API Reference

CommandDialog

PropTypeDefault
openboolean-
onOpenChange(open: boolean) => void-
titlestring"Command Palette"
descriptionstring"Search for a command to run..."

CommandInput

PropTypeDefault
placeholderstring"Type a command or search..."
valuestring-
onValueChange(value: string) => void-

CommandGroup

PropTypeDefault
headingstring-

CommandItem

PropTypeDefault
disabledbooleanfalse
onSelect() => void-