react-lgpd-consent v0.9.1
    Preparing search index...

    Interface CustomCookieBannerProps

    Props esperadas por um componente customizado de CookieBanner.

    Types

    0.3.1

    Fornece acesso ao estado de consentimento e ações necessárias para o banner.

    function MyBanner({ acceptAll, rejectAll, openPreferences, texts }: CustomCookieBannerProps) {
    return (
    <div>
    <p>{texts.bannerMessage}</p>
    <button onClick={acceptAll}>{texts.acceptAll}</button>
    <button onClick={rejectAll}>{texts.declineAll}</button>
    <button onClick={openPreferences}>{texts.preferences}</button>
    </div>
    )
    }
    interface CustomCookieBannerProps {
        acceptAll: () => void;
        blocking?: boolean;
        consented: boolean;
        hideBranding?: boolean;
        openPreferences: () => void;
        rejectAll: () => void;
        texts: AdvancedConsentTexts;
    }
    Index

    Properties

    acceptAll: () => void
    blocking?: boolean

    Indica se o modo bloqueante está ativo no contexto. Esta prop é apenas informativa para banners customizados ajustarem sua UI. O bloqueio funcional pode ser garantido pelo Provider quando blockingStrategy='provider'.

    consented: boolean
    hideBranding?: boolean

    Indica se o branding padrão deve ser ocultado.

    openPreferences: () => void
    rejectAll: () => void