Saltar al contenido
CtrlK

ArdoHeaderSearch

En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.

Header-hosted search. The field variant renders the input inline on desktop; both variants open a search overlay from an icon button. ⌘K / Ctrl+K focuses the inline input when it is visible and opens the overlay otherwise.

import { ArdoHeaderSearch } from "ardo/ui"

<ArdoHeaderSearch />

Props

NameTypeRequiredDescription
placeholderstringNoPlaceholder text for the search input
variant"field" | "icon"No"field" shows the input on desktop and an icon button on narrow
viewports. "icon" shows only the icon button, at every width.
onActivate() => voidNoClose related header UI before activating search.
classNamestringNoAdditional classes on the search trigger button.

Props type: ArdoHeaderSearchProps