Use when
- Users know a word, name, or identifier.
- The result set can be meaningfully ranked or filtered.
Provide a labeled search field, run the query against relevant content, and show result count, matches, and recovery paths.
Users need to find matching content without browsing every category or page.
The content set is larger than users can comfortably scan.
Provide a labeled search field, run the query against relevant content, and show result count, matches, and recovery paths.
Empty query state.
Searching the wrong scope without telling users.
The input has a stable accessible name.
Type a query, inspect the result count, and check how the list responds while narrowing.
Launch the live UI/UX lab when you want to inspect states, keyboard behavior, and common failure modes.
Empty query state.
Enter submits when search is explicit.
Using placeholder text as the only label.
Ministry of Justice - checked
MOJ search guidance supports a labeled search field, submit action, hints, and no-results recovery for search tasks.
W3C Web Accessibility Initiative - checked
APG landmark guidance supports exposing search as a named search region.
Government Digital Service - checked
GOV.UK patterns emphasize task-oriented search, filtering, and recovery states.
Last verified: