<ons-search-input />

A search input element. 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 <ons-search-input> element.

Tutorial

Search inputs

Even though Input component can handle type='search', an extra component is provided which implements search input styles:

<SearchInput placeholder='Search something' />

See also

Name Type Description
input-id String Specify the “id” attribute of the inner <input> element. This is useful when using <label for="..."> elements. Optional.
Name Description
value The current value of the input.
disabled Whether the input is disabled or not.
Name Description
material Displays a Material Design search input.
Signature Description
focus() Focuses the input.
blur() Removes focus from the input.
focus()

Focuses the input.

blur()

Removes focus from the 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.