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,35 @@
import "react";
type CE<T = object> = React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement> & T,
HTMLElement
>;
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"probo-cookie-banner-root": CE<{
"banner-id"?: string;
"base-url"?: string;
lang?: string;
}>;
"probo-banner": CE;
"probo-preference-panel": CE;
"probo-category-list": CE;
"probo-category-toggle": CE;
"probo-cookie-list": CE;
"probo-accept-button": CE;
"probo-reject-button": CE;
"probo-customize-button": CE;
"probo-save-button": CE;
"probo-settings-button": CE<{ position?: string }>;
"probo-cookie-banner": CE<{
"banner-id"?: string;
"base-url"?: string;
position?: string;
"reopen-widget"?: string;
lang?: string;
}>;
}
}
}