Add cookie-banner React example app

Interactive playground with themed banner, headless components,
and debug tabs demonstrating programmatic consent access via
getConsent() across separate bundles.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-18 19:02:54 +04:00
parent 10e35c6afc
commit 5902f2790c
14 changed files with 1393 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
{
"name": "@probo/example-cookie-banner-react",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build"
},
"dependencies": {
"@probo/cookie-banner": "*",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"devDependencies": {
"@types/react": "^19.2.1",
"@types/react-dom": "^19.2.1",
"@vitejs/plugin-react": "^4.5.2",
"typescript": "~5.8.3",
"vite": "^6.3.5"
}
}