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-
titlestringCommand Palette
descriptionstringSearch for a command to run...

CommandInput

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

CommandGroup

PropTypeDefault
headingstring-

CommandItem

PropTypeDefault
disabledbooleanfalse
onSelect() => void-