ComponentsSearch field

Search field

Give a search input a leading icon and a clear action that appears as you type.

Example

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Live project filtering

Filter a list as the query changes and announce the result count.

Example
  • Design systems
  • Workspace launch
  • Accessibility review

No matching projects.

Usage

ClearThe clear action preserves input focus and dispatches a native input event so filtering can react.
KeyboardPress Escape in a populated field to clear it. An empty field lets Escape reach the surrounding interface.