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:
35
examples/cookie-banner-react/src/custom-elements.d.ts
vendored
Normal file
35
examples/cookie-banner-react/src/custom-elements.d.ts
vendored
Normal 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;
|
||||
}>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user