<SearchInput />

A search input component. The component will automatically render as a Material Design search input on Android devices.

Most attributes that can be used for a normal <input> element can also be used on the <SearchInput> component.

Usage

<SearchInput
  value={this.state.text}
  onChange={(event) => { this.setState({text: event.target.value})} }
  modifier='material'
  placeholder='Username' />
Name Type Description
modifier string The appearance of the input. Optional.
disabled bool Specifies whether the input is disabled. Optional.
readOnly bool Specifies whether the input is read-only. Optional.
onChange func Called when the inner input fires a change event. Optional.
onInput func Called when the inner input fires an input event. Optional.
value union Content of the input (controlled). Optional.
defaultValue union Content of the input at first render (uncontrolled). Optional.
placeholder string Placeholder text. In Material Design this placeholder will be a floating label. Optional.
inputId string Specify the “id” attribute of the inner <input> element. This is useful when using
Name Description
material Displays a Material Design search input.

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.