This is the React InstantSearch v7 documentation.
If you’re upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation applies—just check for necessary changes.
To continue using v6, you can find the archived documentation.
Chat widget’s prompt to add a legal notice, replace the default disclaimer, or show a warning above the prompt.
If you only need to change the text in the prompt footer, use translations.prompt.disclaimer.
If you need richer content such as a link, use promptFooterComponent instead.
Change the prompt disclaimer text
Usetranslations.prompt.disclaimer to replace the default prompt disclaimer without changing the footer layout.
React
Replace the prompt footer
UsepromptFooterComponent when you need more than plain text.
For example, you can add a link to your AI policy or legal terms.
React
promptFooterComponent replaces the default prompt footer content.
Use promptHeaderComponent to show content above the textarea instead.Add message footers
UseassistantMessageFooterComponent or userMessageFooterComponent to display content below each message bubble.
React
userMessageFooterComponent to show a footer below user messages.
Show a warning above the prompt
UsepromptHeaderComponent to display a warning above the prompt input instead of below it.
React