React
TheGuideContent widget lets you render the content of a guide on your website.
Installation
The Algolia Guides React package is available on the npm registry.Usage
React
Parameters
The initialized Algolia Generative Experiences client.
The ID of the guide to be retrieved.
Component to display the items featured in the guide.
Whether to only return headlines with generated content.
Whether to generate and display the headlines on load.
The title of the related items carousel found at the end of a guide.
Default:
Items featured in this articleThe number of featured items displayed at the end of a guide.
Whether to show the feedback widget.
If true, you also need to provide a
userToken.The user token needed for computing feedback.
Required if
showFeedback is true.A render function to fully customize what’s displayed.The default implementation is:
React
The view component into which your guide content will be rendered.
The class names for the component.
TypeScript
JavaScript
TheguideContent widget lets you reference and render different guides on your website.
Installation
The Algolia Guides JavaScript package is available on the npm registry.Usage
JavaScript
Parameters
The initialized Algolia Generative Experiences client.
The ID for the guide to be retrieved.
Component to display the items featured in the guide.
Whether to only return headlines with generated content.
Whether to generate and display the headlines on load.
The title of the related items carousel found at the end of a guide.
Default:
Items featured in this articleThe number of featured items displayed at the end of a guide.
Whether to show the feedback widget.
If true, you also need to provide a
userToken.The user token needed for computing feedback.
Required if
showFeedback is trueA render function to fully customize what’s displayed.The default implementation is:
JavaScript
The view component into which your guide content will be rendered.
The Class names for the component.
TypeScript