SearchOptions
Prop | Type | Description |
---|---|---|
enabled | boolean | Enable search Default: |
getHref | ( reference: SearchResult | AlgoliaDocSearchHit, ) => string | undefined | Callback to transform a search result into an href |
getHeading | ( reference: SearchResult | AlgoliaDocSearchHit, query: string, ) => string | undefined | Callback to transform a search result into a heading |
getTitle | ( reference: SearchResult | AlgoliaDocSearchHit, query: string, ) => string | undefined | Callback to transform a search result into a title |
getSubtitle | ( reference: SearchResult | AlgoliaDocSearchHit, query: string, ) => string | undefined | Callback to transform a search result into a subtitle |
label | string | Label for the search input, not shown but used for |
askLabel | string | Label for the "Ask AI" link when using "input" layout Default: |
defaultView | DefaultSearchViewProps | Default (empty) view |
tabLabel | string | Label for the tab bar Default: |
placeholder | string | Placeholder for the search input Default: |
SubmitSearchQueryOptions
Prop | Type | Description |
---|---|---|
limit | number | Maximum amount of results to return Default: |
provider | AlgoliaProvider | Custom provider configuration |
signal | AbortSignal | AbortController signal |