Developer Guide
Product DocumentationDeveloper GuideAPI ReferenceHelp Center
  • Welcome!
  • Fundamentals
    • API and client libraries
      • REST API Reference
      • JavaScript
      • Node
      • PHP
      • Python
      • Ruby
      • .Net
    • Search UI widgets
      • Search results widget
      • Search input widget
      • Takeover Search Input Widget
      • Configuration Objects
    • Pipelines
      • Steps
      • Record Pipelines
      • Query pipelines
      • Fundamental steps
      • Variable manipulation
  • Guides
    • Quick Start
      • Setting up a collection
      • Tuning your search
    • Feature implementation
      • Implementing tracking
      • Promotion banners
      • Aggregate Filters
      • Bucket Aggregates
      • Redirects
    • Using pipelines
      • Configuring autocomplete
      • Configuring spelling
      • Phrase training
      • Regular expressions
  • Helpful links
    • Product Documentation
    • API Reference
    • Help Center
Powered by GitBook
On this page

Was this helpful?

  1. Fundamentals
  2. Search UI widgets

Takeover Search Input Widget

PreviousSearch input widgetNextConfiguration Objects

Last updated 2 years ago

Was this helpful?

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 .

Configuration

The following options can be configured when creating the takeover search input widget.

Name
Type
Default
Description

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.

<div data-widget="search-input-binding">
  <script type="application/json">
    {
      "account": "1594153711901724220",
      "collection": "bestbuy",
      "pipeline": "query",
      "selector": "#search-input",
      "mode": "results"
    }
  </script>
</div>
<script async src="https://cdn.search.io/embed/1/loader.js"></script>

The mode of the input. For details, see .

See the example in .

Codesandbox
Input props
Codesandbox
Takeover Search Input Widget