Component · 8+ variants

React Command Palette

cmdk + Radix Dialog under the hood. Fuzzy search, keyboard nav, group headings. Pick the variant that matches your product: Linear's sharp dark, Vercel's pure black, Apple's premium soft.

Install (any variant)

npx shadcn@latest add https://better-design.com/registry/linear/command.json

Replace linear with any design system slug. Every variant ships from the same registry.

Design system variants

Browse all 73 design systems

Why this command palette

  • cmdk under the hood: fuzzy filter, keyboard nav, group headings out of the box
  • Radix Dialog for the modal: focus trap, escape-to-close, scroll lock
  • 73 design-system variants: Linear sharp dark, Vercel pure black, Apple soft
  • Ships as shadcn-compatible registry: `npx shadcn@latest add`

Usage

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

export function CommandMenu({ open, onOpenChange }) {
  return (
    <CommandDialog open={open} onOpenChange={onOpenChange}>
      <CommandInput placeholder="Type a command..." />
      <CommandList>
        <CommandEmpty>No results.</CommandEmpty>
        <CommandGroup heading="Navigate">
          <CommandItem>Inbox</CommandItem>
          <CommandItem>Issues</CommandItem>
        </CommandGroup>
      </CommandList>
    </CommandDialog>
  );
}

FAQ

What's this built on?

cmdk for the command primitive, @radix-ui/react-dialog for the modal shell, lucide-react for the search icon. Identical primitive stack to shadcn/ui's command: Better Design ships re-skinned variants.

Is it free?

Yes. MIT-licensed shadcn-compatible registry items. `npx shadcn@latest add`: source lands in your components/ui folder.

Best variant for a developer tool?

Linear or Linear Quality. Both ship the dense, dark, keyboard-first feel that dev tools converge on.

Best variant for a consumer app?

Apple if you want soft premium feel. Airbnb if warm/marketplace. Notion if minimal/content-led.

Related component pages

More from Better Design