Ui componentsReactIn page
Embedded Search (React)
Add a search UI directly on a dedicated React powered page.
Overview
An "embedded search" is a search UI that is directly incorporated into a page instead of within a pop-up modal.
Quick Start
Install the component library
Define the component
Embedded Search Props
This type represents the configuration for the Inkeep embedded search widget.
Prop | Type | Required | Description |
---|---|---|---|
baseSettings | object | Yes | Core configuration settings. See Base Settings for details. |
searchSettings | object | No | Search configuration settings. See Search Settings for details. |
isHidden | boolean | No | Whether to hide the search interface. Defaults to false. |
shouldAutoFocusInput | boolean | No | Whether to auto focus the input. Defaults to true. |
askAILabel | string | No | The label for the Ask AI button |
Examples
Auto Focus Input
With Search Settings
Accessing Component Methods
The searchSettings
config accepts a searchFunctionsRef
prop that allows you to access the search methods.
Method | Description |
---|---|
updateQuery(query: string) | Programmatically updates the search query. |
focusInput() | Sets focus to the search input field |