Search field

v2.1

The search field filters a list using custom characters and keywords.

  • CSS
  • Marko
  • React

Anatomy

Options

Behavior

Screen size

Small screens

Search fields span the full width of the container on smaller screens. The search field should be near the top of the page to ensure there’s enough room for the device keyboard and the first few results to be visible. The screen will scroll to keep the search field in view when receiving focus.

Mobile native app search with keyboard and vinyl results for "coltrane."

Native

Where possible, native platforms use real-time filtering as characters are entered. Native platforms can also leverage a focused search view to reduce unnecessary UI as a search query is entered.

Mobile web search in eBay Watchlist for "coltrane" with results.

Web

Search fields on web platforms filter the list below the field.

Medium and large screens

Medium and large screens across platforms can use the search field inline with other elements, like filter buttons in an action bar.

Desktop Watchlist view with inline search for "chair" results.

Best practices

Specs

Search bar annotated with padding and spacing for icons and content.