Skip to content
TrademarkTrademark
Docs
Form Controls

SearchInput

Updated: November 2, 2026
View on GitHub
Soon
Not released yet. The published package does not include this yet, so it will not install today.

SearchInput is an Input for searching a list or a catalog. It shows a search icon before the value and a clear button once there is text, and the keyboard's return key reads Search. It has no floating label: the placeholder names it, and screen readers read it as a search field.

Basic usage

Filter as people type with onChangeText, or run the search when they press the keyboard's Search key with onSubmitEditing.

Clearing

The clear button empties the field, calls onChangeText(""), then onClear. It works whether the field is controlled with value or not.

Testing

With a testID, the field is testID and the clear button is ${testID}-clear, so Maestro and Testing Library can reach both.

API reference

Prop
Type
Default
Description
...InputPropsInputPropsEvery Input prop except prefix, label and multiline.
placeholderstring"Search"Shown while empty, and the field's accessible name.
onClear() => voidCalled after the clear button empties the field.
sizeTShirtSizes"s"The field's height, as on Input.
Edit this page on GitHub