Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Command

Fast, filterable command menu on cmdk. Inline or as a ⌘K dialog.

Overlayscmdk
$ pnpm dlx shadcn@latest add @dumb/command

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  Command,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
} from "@/components/ui/command"
<Command>
  <CommandInput placeholder="Type a command" />
  <CommandList>
    <CommandEmpty>No results.</CommandEmpty>
    <CommandGroup heading="Project">
      <CommandItem>New branch</CommandItem>
    </CommandGroup>
  </CommandList>
</Command>

Dialog

Opens with ⌘K / Ctrl+K.

Command palette

Search for a command to run

ArrowUpArrowDown
Moves the selection.
Enter
Runs the selected item.