Skip to main content

React

The GuidesFeedback widget lets you gather feedback on the guides.
This feature uses the Insights API to gather events related to Guides feedback. This requires a user token.

Installation

The Algolia Guides React package is available on the npm registry.

Usage

React

Parameters

client
GSEClient
required
The initialized Algolia Generative Experiences client.
objectIDs
string
required
List of object IDs for which to gather feedback.
userToken
string
required
The user token for computing feedback.
voteTarget
"content" | "headline"
default:"content"
The target of the feedback.
children
(props: ChildrenProps) => JSX.Element
A render function to fully customize what’s displayed.The default implementation is:
React
view
ViewProps
The view component to render your feedback widget.
classNames
FeedbackClassNames
The class names for the component.
TypeScript

JavaScript

The guidesFeedback widget lets you gather feedback on the guides.
This feature uses the Insights API to gather events related to Guides feedback. This requires a user token.

Installation

The Algolia Guides JavaScript package is available on the npm registry.

Usage

JavaScript

Parameters

client
GSEClient
required
The initialized Algolia Generative Experiences client.
objectIDs
string
required
List of object IDs for which to gather feedback.
userToken
string
required
The user token for computing feedback.
voteTarget
"content" | "headline"
default:"content"
The target of the feedback.
children
(props: ChildrenProps) => JSX.Element
A render function to fully customize what’s displayed.The default implementation is:
JavaScript
view
ViewProps
The view component to render your feedback widget.
classNames
FeedbackClassNames
The class names for the component.
TypeScript
Last modified on May 19, 2026