Skip to content
RivetUI

Command Bar

Searches and executes grouped application actions from a modal keyboard surface.

@rivetui/command-bar

Preview

Explore each composition interactively, then open its code in the same context.

Default

The global shortcut is disabled inside the documentation preview.

Selection callback

Select an action to inspect it.

Registry

Installation

Add the component source and its declared dependencies with the shadcn CLI.

Install component
bunx --bun shadcn@latest add @rivetui/command-bar
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
actionsreadonly CommandBarAction[]—
openboolean—
defaultOpenbooleanfalse
onOpenChange(open: boolean) => void—
labelstring"Command bar"
placeholderstring"Search commands"
emptyMessageReactNode"No commands found."
hotkeybooleantrue
closeOnSelectbooleantrue
onActionSelect(action) => void—
Rivet UI / Command BarComponents engineered, not decorated.