Next.js
Put the component in your root layout. The React entry is already marked “use client”.
On this page
Install
Usage
Notes
- Works in a Server Component layout, with no wrapper of your own.
- Nothing runs on the server: the widget starts in the browser after hydration.
- With a nonce-based CSP, pass the request's nonce as
nonce. - This site is built with Next.js and uses the component in its own root layout.
Accessibility statement
Pass
statementUrl to link your accessibility statement from the panel's footer.