Skip to main content
ParticleUI

Command

Command palette / ⌘K menu built on cmdk with fuzzy search.

Installation

1

Run the CLI

$npx particleui-cli add command

Usage

TSX
import {
  Command, CommandInput, CommandList, CommandEmpty,
  CommandGroup, CommandItem,
} from "@/components/ui/command"

export default function Example() {
  return (
    <Command className="rounded-lg border shadow-md w-64">
      <CommandInput placeholder="Type a command..." />
      <CommandList>
        <CommandEmpty>No results found.</CommandEmpty>
        <CommandGroup heading="Suggestions">
          <CommandItem>Calendar</CommandItem>
          <CommandItem>Search</CommandItem>
          <CommandItem>Settings</CommandItem>
        </CommandGroup>
      </CommandList>
    </Command>
  )
}

Details

Source filecomponents/ui/command.tsx
Typeui
Categoriesoverlay, core
npm dependenciescmdk, lucide-react
Registry deps
Claude skill