Examples
Autocomplete hint
When one option remains, a disabled pf-m-hint ghost input previews it — Tab accepts the
completion.
With submit button
A Search control button submits the query. PF\u2019s "focus via ref" section is a React-ism.
Searched for:
Advanced expanded
The advanced attribute panel rendered already open; the caret still toggles it live.
Composable advanced search
The advanced pane is composed by hand from primitives — a raised panel with a form that composes the query back into the search input.
Documentation
Search input structure
Search input is a composition, not a separate runtime template. The markup is:
.pf-v6-c-text-input-groupwrapper-
Inside:
.pf-v6-c-text-input-group__main.pf-m-iconcontaining the icon span + the <input type="search"> - Optional:
.pf-v6-c-text-input-group__utilitieswith the clear button
See the With clear example for the full structure.
Usage
HTMX pairing. The standard server-side search pattern is
hx-get="/search" hx-trigger="input changed delay:200ms" hx-target="#results".
Accessibility. Always set aria-label="Search" on the input — there's
no visible label.