Select your language
Select other languages

Automatic translation

Loading translator…

Magoomake your components work correctlyBack to homepage

Input "search"

Allows entering terms to search content.

For working examples and design patterns for this component, see the references tab (opens the references on this page).

COMPONENT GUIDE

Explore behaviors before defining the interface.

Quick guide for designers

Always consider the context of the application, even when the guidance follows a standard pattern. Interaction design documents intent. Behavior must be verified in the implementation.

When to use

Use to enter terms and find content.

What to draw

Show the label, field, results, and no-results state. Include Search and Clear search when used.

How it behaves

Define whether search runs on submission or while typing. Clearing empties the field without submitting and allows continued editing.

What to document in Figma

Record submission, clearing, and how results are communicated without unexpectedly moving focus or announcing each keystroke.

How to review

Check whether the purpose and states are clear on small and large screens and with zoom. Verify documented behavior in the implementation, including keyboard and screen reader use where applicable.

Full guidance

Interaction Design

Questions to ask when designing Input "search" components.

Assess each guideline according to the component's context of use.

Designing for "no interaction"

Designing for mouse use

Designing for gesture use

Designing for keyboard use

Designing for screen reader use

Interaction methods

The field uses type="search" and has a label explaining what will be searched.

Mouse interaction

Keyboard interaction

Gesture interaction

Keyboard (or gesture) interaction + screen reader

Submit and clear search

Gherkin

BDD (Behavior-Driven Development) methodology focusing on three pillars: User Stories, Acceptance Criteria, and Gherkin Syntax (Given, When, Then).

Scenario: Given that I am on a page containing Input "search"

Keyboard navigation

Desktop screen reader

Mobile screen reader

Input validation

Search activation

Considerations

References

Field documentation

Design System

Original content by Marcelo Sales, initially used in the AccessBoost course (external link - opens in a new window). These interactions represent standard industry patterns, but may be customized in specific cases, provided there are sufficient instructions for people to understand the behavioral change.