Skip to content

Components

Command Palette

Search everything and act on it from the keyboard: a field over a list that narrows as you type, opened with ⌘K.

Overview
Entries
Settings
Add entryN
Import a statement
Export to CSV

Import

import { CommandPalette, useCommandPaletteShortcut } from '@rinzai/zen';

API reference

<CommandPalette>

Search everything and act on it (pages, commands, records): a field over a list that narrows as you type. Arrow keys move, Enter runs the item and closes. Open it from a button, or anywhere with ⌘K / Ctrl+K (useCommandPaletteShortcut).

PropTypeDefault
itemsRequired
CommandItem[]—
onOpenChangeRequired
(open: boolean) => void—
openRequired
boolean—
className
string—
empty

Shown when nothing matches.

ReactNodeNo results
label

Names the palette and its list, for screen readers.

stringCommands
placeholder
stringSearch…