Get StartedComponentsStylingThemingMath & Science
MCP

Overlays & Feedback

Command

A command palette with search, groups and shortcuts (⌘K).

Markdown

Import

tsx
import { Command } from "@indoku/ui"

Examples

Basic usage

Props

Root

PropTypeDefaultDescription
shouldFilterbooleantrueTurn off built-in filtering when you filter yourself (e.g. server results).
searchstring–Controlled search text.
onSearchChange(search: string) => void–
loopbooleantrueArrow down on the last item wraps to the first.

Group

PropTypeDefaultDescription
headingReactNode–

Item

PropTypeDefaultDescription
valuestring–Text matched against the search. Defaults to children when it is a string.
keywordsstring[]–Extra keywords used by search.
disabledboolean–
onSelect(value: string) => void–

Dialog

PropTypeDefaultDescription
open*boolean–
onOpenChange*(open: boolean) => void–
hotkeystring–Shortcut letter (used with Cmd/Ctrl), e.g. "k" for Cmd/Ctrl+K.
titlestring–Accessible label of the dialog.

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev