Skip to content

SearchInput

Props

API reference for SearchInput. For usage examples, see the React tab.

SearchInput

NameTypeDefault
childrenChildrenOrFunction<SearchFieldRenderProps>

The children of the component. A function may be provided to alter the children based on component state.

descriptionstring
inputMode"decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url"

Hints at the type of data that might be entered by the user while editing the element or its contents. See MDN (opens in new tab).

isDisabledboolean

Whether the input is disabled.

isInvalidboolean

Whether the input value is invalid.

isReadOnlyboolean

Whether the input can be selected but not changed by the user.

isRequiredboolean

Whether user input is required on the input before form submission.

labelstring
size"lg" | "md" | "sm"md

Controls height, padding, typography, and search chrome of the field.

compactDeprecatedboolean

Use size instead. This prop is a no-op.

SearchField

NameTypeDefault
childrenChildrenOrFunction<SearchFieldRenderProps>

The children of the component. A function may be provided to alter the children based on component state.

inputMode"decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url"

Hints at the type of data that might be entered by the user while editing the element or its contents. See MDN (opens in new tab).

isDisabledboolean

Whether the input is disabled.

isInvalidboolean

Whether the input value is invalid.

isReadOnlyboolean

Whether the input can be selected but not changed by the user.

isRequiredboolean

Whether user input is required on the input before form submission.