A command palette / search component (⌘K style). Opens as an overlay with a search input and filterable list of items.
Ver código
<co-command-search></co-command-search>
Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|
emptyMessage | empty-message | string | 'No results found' | Empty state message when no results match |
items | items | CommandItem[] | string | [] | Items to display (JSON string or set via JS property) |
open | open | boolean | false | Whether the command palette is open |
placeholder | placeholder | string | 'Search...' | Placeholder text for the search input |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|
coClose | void | ✓ | ✓ | |
coSelect | string | ✓ | ✓ | |
Slots
| Slot | Descripción |
|---|
trigger | Optional trigger element that opens the palette on click |
CSS Parts
| Part | Descripción |
|---|
::part(empty) | |
::part(input) | |
::part(input-row) | |
::part(item) | |
::part(panel) | |
::part(results) | |
CSS Custom Properties
Este componente no expone CSS custom properties.