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 | undefinedOptional group name for categorization.
iconiconstring | undefinedOptional icon name (Lucide icon).
labellabelstringThe display label for the item.
shortcutshortcutstring | undefinedOptional keyboard shortcut text (e.g., “Ctrl+S”).
valuevaluestringThe 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>