HPE
Design System
Foundation
Components
Templates
Learn
Jump to section
Guidance
Placeholder
Auto-suggestions
Returning search results
Accessibility
Variants
Search with auto suggestions
Simple search
Icon position
Components

Search

Search is a field that allows a user to input keywords for content they are looking for.

Guidance

Search inputs provide a powerful means for users to access content quickly and efficiently.

Many search best practices extend "behind the scenes," such as how query strings are matched to relevant content and to the efficiency in which that information is retrieved.

Placeholder

Placeholder text should only contain the text "Search".

Do

Search placeholder only contains the text "Search".

Don't

Don’t use specific attributes or descriptors in the search placeholder.

Auto-suggestions

  • Provide effective auto-suggestions whenever possible.
  • Auto suggestions accelerate search and allow users to focus on task completion.

Returning search results

  • Use "live filtering." When results are visible and quick to filter, results should be filtered as the user types.
  • Sort results by highest relevance. Relevance can be determined by keyword matching, however, to really elevate user experience, consider implementing probability based approaches.
  • Persist users' original query. This eliminates the need to re-type and assists query reformation if needed.
  • Persist users' recently used search queries. Remembering the user's previous efforts respects their time and serves as "short cuts" for returning to previously visited content.

Accessibility

Search inputs should be accessible. Ensure users have the ability to return results using their keyboard as well as clicking a button.

Inputs should always be accompanied by labels for accessibility. An icon may serve as a label if:

  1. The icon meaning is well understood.
  2. Has an 'aria-labelledby' attribute.

For additional detail, see ARIA form hints and 'aria-labelledby'.

Variants

Visual and functional extensions for Search.

Search with auto suggestions

Suggestions provide users instantaneous feedback as they type, and aid by prompting with common search intents most closely matching the query in progress. Helpful matching functions include root word recognition and predictive text.

Suggested queries should be sorted from highest probability match to lowest. Limit the number of suggested queries displayed to five or less.

Simple search

Use simple search when its input field is desired to blend with its surrounding content, such as when used in a Header.

Icon position

The search icon may be placed either to the right or left of the input field. Icon position is controlled via the reverse property.

Related

Related content you may find useful when using Search.

TextInput

TextInput is a field used in forms to capture short entries.
HPE
Text

Header

Header is a Box with a set of preset properties for introductory content.

Still have questions?

Something missing or looking for more information? Get in touch to help make the HPE Design System better.

Edit this page