Skip to content

Playground

Try the library live at the interactive playground →.

The playground includes three demos:

  • Vanilla — Plain HTML and JavaScript using createConsent from @uabcodus/consent/core. No framework needed.
  • React — Full React integration with ConsentProvider and useConsent. Builds a banner and preferences panel from scratch.
  • React + shadcn/ui — The same React setup but using the registry components (Banner, Panel, Toggle) styled with Tailwind CSS.

Each demo includes a live state inspector so you can see exactly what happens when you accept or reject categories.