Skip to content

Which API should I use? for JavaScript

Markdown
Loading…

Presets, primitives or hooks: pick the layer that fits, and the one hook for each job.

With no framework, there are two packages, and a third path if you are writing a framework adapter:

You wantUse
The ready-made banner, dialogs and recall button on any page@cookieyes/vanilla
A banner of your own, drawn from the consent state@cookieyes/core
A native banner for a framework that has no CookieYes adapter yet@cookieyes/ui, checked by the shared conformance suite

Start with @cookieyes/vanilla: it is the same banner as the React one, with the same styling and translations.

On this page

No Headings