Command

⌘K palette and filterable command lists.

shadcn/ui · new-york-v4 · synced Aug 29, 2026shadcn/uinew-york-v4 · synced Aug 29, 2026

Installation

import {
  Command,
  CommandDialog,
  CommandInput,
  CommandList,
  CommandEmpty,
  CommandGroup,
  CommandItem,
  CommandShortcut,
  CommandSeparator,
} from "@aspyn-io/kit";

⌘K palette

Global search-and-act. Try the button or press ⌘K / Ctrl+K right now.

Command Palette

Search for a command to run...

Inline command list

Groups with icons

A leading icon per item aids scanning. CommandItem lays out icon + label with a gap automatically.

Scrollable list

CommandList caps its height (max-h-[300px]) and scrolls, so long result sets stay contained.

Notes

  • Fuzzy filtering, keyboard navigation, and grouping come from cmdk.
  • CommandDialog includes a visually-hidden title for screen readers: pass title to customize.