Skip to content

CommandPalette

<ts-command-palette> vv0.6.3

A command palette overlay for quick search and action execution. Activated via Cmd+K (Mac) / Ctrl+K (Windows/Linux).

Open in Storybook for interactive demos.

<ts-command-palette placeholder="Type a command...">Content</ts-command-palette>
PropertyAttributeTypeDefaultDescription
openopenbooleanfalseWhether the command palette is open.
placeholderplaceholderstring'Type a command...'Placeholder text for the search input.
EventDetailBubblesComposedDescription
tsClosevoidYesYesEmitted when the palette is closed.
tsSelect\{ value: string; \}YesYesEmitted when an item is selected.
NameDescription
*(default)*Default slot for <ts-command-palette-item> children.

Use ::part() to style internal elements:

PartDescription
listThe scrollable results list.
overlayThe backdrop overlay.
panelThe palette panel container.
searchThe search input element.
ts-command-palette::part(list) {
/* your custom styles */
}
<ts-command-palette placeholder="Type a command...">Content</ts-command-palette>
import { TsCommandPalette } from '@tessera-ui/react';
<TsCommandPalette placeholder="Type a command...">Content</TsCommandPalette>