<SearchBox.Input />

Extends the native HTML Input and consumes the search context in order to fetch hits from the indexed data.

import { SearchBox } from 'basehub/react-search'

// -> SearchBox.Input

Props

The <SearchBox.Input /> extends the native HTMLInputProps.

Key

Type

Description

asChild

boolean

Passes all its configuration to the immediate child. It’s a requirement for this that it has only one children.

Examples

  • Documentation: Step by step

  • Also you can check out our search implementation for this Documentation template on Github