Hit Components
Use cases and APIReference for HitList, HitItem, HitSnippet
<SearchBox.HitList /> Props
import { SearchBox } from 'basehub/react-search'
// -> SearchBox.HitList
<SearchBox.HitItem /> Props
import { SearchBox } from 'basehub/react-search'
// -> SearchBox.HitItem
The <SearchBox.HitItem />
extends the native HTMLDivProps
.
Both HitList and HitItem provide keyboard navigation out-of-the-box.
<SearchBox.HitSnippet /> Props
import { SearchBox } from 'basehub/react-search'
// -> SearchBox.HitSnippet
The HitSnippet works as sugar syntax to render specific fields of the hit object with ease.