leadingIcon | Icon | No | — | Decorative icon shown at the leading edge; the search icon is used by default. |
className | string | Partial<Record<"container" | "search" | "input" | "stateLayer" | "inputField" | "leadingIcon" | "trailingActions" | "clearButton" | "results", string>> | ClassNameComponent<...> | No | — | Root classes (string), static element classes (object), or state-aware element classes (function). |
autoFocus | boolean | No | — | Focuses the input once, on mount. |
id | string | No | — | Id of the search input. Auto-generated if not provided. |
spellCheck | boolean | No | true | Native spell-check preference. |
inputMode | SearchInputMode | No | — | Native input mode hint. |
label | string | Yes | — | Accessible name for the native search input. |
query | string | No | — | Controlled query. Providing it makes the search controlled for its lifetime. |
defaultQuery | string | No | '' | Initial query for uncontrolled usage. |
onQueryChange | (query: string) => void | No | — | Called once for each accepted query transition. |
expanded | boolean | No | — | Controlled expanded state. Providing it makes the state controlled for its lifetime. |
defaultExpanded | boolean | No | false | Initial expanded state for uncontrolled usage. |
onExpandedChange | (expanded: boolean) => void | No | — | Called once for each accepted expanded-state transition. |
onSearch | (query: string) => void | No | — | Called when the user submits the current query with the search action. |
placeholder | string | No | 'Search' | Hint displayed while the query is empty. |
disabled | boolean | No | false | Prevents query editing and activation. |
clearable | boolean | No | true | Clears the query when the clear action is activated. |
name | string | No | — | Native form name forwarded to the search input. |
autoComplete | string | No | 'off' | Native autocomplete hint. |
maxLength | number | No | — | Native maximum query length. |
minLength | number | No | — | Native minimum query length. |
required | boolean | No | — | Requires a non-empty query when the input participates in a form. |
readOnly | boolean | No | — | Prevents editing while preserving the search value and semantics. |
resultsRole | SearchResultsRole | No | 'listbox' | Role used by the projected results surface. |
resultsLabel | string | No | 'Search suggestions' | Accessible name for the projected results surface. |
clearLabel | string | No | 'Clear search' | Accessible name of the clear action. |
trailingActions | ReactNode | No | — | Interactive trailing controls, normally one or two `IconButton` instances. |