Open GitHub repository
ComponentsCommand

Command

A keyboard-friendly command palette with filtering, shortcuts, and selection callbacks.

Installation

bunx @swift-rust/ui add command

Usage

tsx
1import { Command } from "@/components/ui/command";
2 
3<Command
4 items={[
5 { id: "docs", label: "Open docs", shortcut: "⌘D" },
6 { id: "theme", label: "Toggle theme" },
7 ]}
8 onSelect={(item) => console.log(item.id)}
9/>