@hmlr/govuk-react-components-library
Version:
These are common component use for React applications based on GDS and govuk-frontend
22 lines (21 loc) • 578 B
TypeScript
import React from "react";
export interface CookieBannerMessageAction {
className?: string;
href?: string;
to?: string;
children?: React.ReactNode;
type?: "submit" | "reset" | "button";
[key: string]: unknown;
}
export interface CookieBannerMessageItem {
headingChildren?: React.ReactNode;
children?: React.ReactNode;
"aria-label"?: string;
actions?: CookieBannerMessageAction[];
className?: string;
[key: string]: unknown;
}
export interface CookieBannerProps {
className?: string;
messages: CookieBannerMessageItem[];
}