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

    Module react-lgpd-consent

    Ponto de entrada público da biblioteca react-lgpd-consent. Exporta componentes, hooks, utilitários e tipos para gerenciamento de consentimento de cookies conforme LGPD.

    • Componentes de UI baseados em Material-UI
    • Context Provider para estado global de consentimento
    • Hooks customizados para acesso ao consentimento
    • Utilitários para manipulação de cookies e scripts
    • Tipos TypeScript para máxima segurança e clareza

    Consulte a documentação oficial para exemplos de uso e integração.

    Components

    CookieBanner
    FloatingPreferencesButton
    PreferencesModal

    Hooks

    useCategories
    useCategoryStatus
    useConsentScriptLoader
    useOpenPreferencesModal

    Context

    ConsentProvider

    Utils

    LogLevel
    COMMON_INTEGRATIONS
    DEFAULT_PROJECT_CATEGORIES
    defaultConsentTheme
    analyzeDeveloperConfiguration
    ConsentScriptLoader
    createGoogleAnalyticsIntegration
    createGoogleTagManagerIntegration
    createProjectPreferences
    createUserWayIntegration
    getAllProjectCategories
    loadScript
    setDebugLogging
    validateProjectPreferences

    Types

    CategoryDefinition
    ConsentContextValue
    ConsentCookieData
    ConsentCookieOptions
    ConsentPreferences
    ConsentProviderProps
    ConsentState
    ConsentTexts
    CustomCookieBannerProps
    CustomFloatingPreferencesButtonProps
    CustomPreferencesModalProps
    DesignTokens
    ProjectCategoriesConfig
    Category

    Other

    CategoriesContextValue
    ConsentScriptLoaderProps
    CookieBannerProps
    DeveloperGuidance
    FloatingPreferencesButtonProps
    GoogleAnalyticsConfig
    GoogleTagManagerConfig
    PreferencesModalProps
    ScriptIntegration
    UserWayConfig
    defaultTexts
    ConsentGate
    openPreferencesModal
    useConsent
    useConsentHydration
    useConsentTexts