Agentic Design System
v3.5.0

Components · Forms · Search

Back to Search types

Search

Owner: Design System Team · Version: v3.5.0

Use for letting people query or filter a set of content, like a table, a list, or a command palette.

Properties

Search fields skip a visible label by convention - the placeholder and a leading icon communicate purpose. Size, corner radius, placeholder, leading icon and clear button are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.

Size
Corner radius
Leading icon
Clear button
Supporting text

Live Preview

All 3 types compared side by side, each in all 6 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.

When to use

Any field that lets someone query or filter a set of content, rather than submit a value as part of a larger form.

Global search Table filter Command palette Autocomplete lookup Inbox search

Validation

Search is usually a standalone query field, not a required part of a form, so its validation is less about "did you fill this in" and more about handling the async states between typing and results.

Component Guide

Overview

Search is a text field purpose-built for querying or filtering a set of content - it intentionally skips a visible label by convention, since a search icon and placeholder text make its purpose obvious in the contexts it's used.

When to Use

  • Global or site-wide search - a top-level search bar.
  • Filtering a table, list, or dataset already on screen - narrowing visible rows as the user types.
  • A command palette or inbox search - any live-filtering query field.

When Not to Use

  • A value submitted as part of a larger form - use Input - Search implies live querying, not form submission.
  • A field that needs a visible, persistent label for clarity (e.g. in a dense settings form) - use Input with a label instead of relying on the search icon alone.
  • A field that should suggest specific matching values as you type - use Autocomplete if suggestions, not just filtering, are the goal.

Best Practices

  • Debounce the query as the user types rather than searching on every keystroke, especially for server-side search.
  • Always include a visible clear ('x') control once text has been entered.
  • Show a clear empty-results state when a query returns nothing, rather than leaving a blank list.

Do and Don't

Do

×

Searches file names and contents.

Says what is being searched, and offers a clear affordance so the user can get back to the unfiltered list in one action.

Don't

With no scope stated and no way to clear, an empty result set is unreadable - the user cannot tell whether nothing matched or they searched the wrong thing.

Accessibility

  • Even without a visible label, the field carries an accessible name (via aria-label or a visually hidden label) so screen readers announce its purpose.
  • The clear button is independently focusable and labeled ("Clear search"), not just an icon with no accessible name.
  • Live-updating results are announced via an aria-live region so screen-reader users know the list changed.

Related Components

Input, Autocomplete, Table, List.