Files
probo/examples/cookie-banner-react/src/custom-elements.d.ts
Émile Ré 5902f2790c 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>
2026-05-19 12:52:14 +04:00

36 lines
882 B
TypeScript

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;
}>;
}
}
}