Takeover Search Input Widget
Last updated
Last updated
The Takeover Search Input widget allows users to inject Search.io search experience into an existing search input field while keeping the current appearance.
See the example in Codesandbox.
The following options can be configured when creating the takeover search input widget.
selector
string
'form[action="/search"] input[name="q"]' if the preset is 'shopify'
The CSS selector of the input being taken over.
mode
'standard'
| 'typeahead'
| 'suggestions'
| 'results'
'results'
omittedElementSelectors
string
| string[]
_
A single or a list of CSS selector of elements to be removed when the widget has mounted.
See the example in Codesandbox.
The mode of the input. For details, see .