OOratiq

Command

Ready

Command palette.

Requires cmdk

Installation

$ npx @oratiq-js/ui add command

Copies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.

Usage

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

Inline

Dialog

The ⌘K pattern.

Or press K anywhere on this page.

The dialog needs a name

CommandDialog renders a visually hidden title and description. Radix warns without them, and a screen reader would otherwise announce an unnamed dialog.

View source on GitHub → components/ui/command.tsx