Client Side Options (App Dir)

October 14, 2025

In React some ConsentManagerProvider options including callbacks and scripts cannot be serialized and sent to the client from the server. This is why we have the ClientSideOptionsProvider component.

It is important to note that this component is not used in the Pages Directory. If you'd like to use a full client-side solution, you can use the <ConsentManagerProvider /> component from @c15t/nextjs/client.

Usage

app/consent-manager.client.tsx

Next, you should import this component to be inside your ConsentManagerProvider component.

app/consent-manager.tsx

API Reference

ClientSideOptionsProviderProps

The main component accepts these props:

Loading…