@c15t/react
Version:
Developer-first CMP for React: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization
23 lines • 794 B
TypeScript
import * as Button from '../ui/button';
import type { ConsentButtonProps } from './button.types';
/**
* Button component that allows users to reject non-essential cookies.
*
* @remarks
* When clicked, this button saves only necessary cookie consents and closes the banner.
*
* @example
* ```tsx
* <CookieBannerRejectButton>
* Reject All Cookies
* </CookieBannerRejectButton>
* ```
*
* @public
*/
export declare const ConsentButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & Button.ButtonVariantsProps & {
action: "accept-consent" | "reject-consent" | "custom-consent" | "open-consent-dialog";
closeCustomizeDialog?: boolean;
closeCookieBanner?: boolean;
} & import("react").RefAttributes<HTMLButtonElement>>;
//# sourceMappingURL=button.d.ts.map