Use our React component to integrate Ask Cookbook into your React applications.Documentation Index
Fetch the complete documentation index at: https://docs.cookbook.dev/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install the package using your preferred package manager:- npm
- yarn
- pnpm
Usage
Import and add the component to a parent component, such as your app’s root or layout:Props
Your API key for Ask Cookbook. Contact tyler@cookbook.dev to get your key.
If
true, the modal will be always open (useful for showcase purposes).If
true, disables fast mode switch, forcing the chatbot into detailed mode.Next.js example
For Next.js applications, add the component to your root layout:Having trouble with the integration? Contact us at tyler@cookbook.dev for help.