Skip to content

CommandPaletteItem

<ts-command-palette-item> vv0.6.3

An individual item within the command palette.

Open in Storybook for interactive demos.

<ts-command-palette-item></ts-command-palette-item>
PropertyAttributeTypeDefaultDescription
groupgroupstring | undefined—Optional group name for categorization.
iconiconstring | undefined—Optional icon name (Lucide icon).
labellabelstring—The display label for the item.
shortcutshortcutstring | undefined—Optional keyboard shortcut text (e.g., “Ctrl+S”).
valuevaluestring—The value emitted when this item is selected.

Use ::part() to style internal elements:

PartDescription
baseThe item container.
iconThe icon wrapper.
labelThe label text.
shortcutThe keyboard shortcut text.
ts-command-palette-item::part(base) {
/* your custom styles */
}
<ts-command-palette-item></ts-command-palette-item>
import { TsCommandPaletteItem } from '@tessera-ui/react';
<TsCommandPaletteItem></TsCommandPaletteItem>