Skip to content

co-command-search

This content is not available in your language yet.

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

PropAtributoTipoDefaultDescripción
emptyMessageempty-messagestring'No results found'Empty state message when no results match
itemsitemsCommandItem[] | string[]Items to display (JSON string or set via JS property)
openopenbooleanfalseWhether the command palette is open
placeholderplaceholderstring'Search...'Placeholder text for the search input

Eventos

EventoDetailBubblesCancelableDescripción
coClosevoid
coSelectstring

Slots

SlotDescripción
triggerOptional trigger element that opens the palette on click

CSS Parts

PartDescripción
::part(empty)
::part(input)
::part(input-row)
::part(item)
::part(panel)
::part(results)

CSS Custom Properties

Este componente no expone CSS custom properties.