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

    react-lgpd-consent 🍪

    A React library for cookie consent management compliant with Brazil's LGPD.

    NPM Version Downloads License Storybook
    TypeScript Ready React 18+ Next.js Compatible

    InstallationBasic Usage📚 QuickstartDocumentationContributing

    Quickstart

    Start here: follow the Quickstart guide (QUICKSTART.en.md) for step-by-step setup, TypeScript examples, props summary and MUI integration — recommended for new users.


    npm install react-lgpd-consent @mui/material @emotion/react @emotion/styled js-cookie
    

    Peer dependencies: react, react-dom, @mui/material and js-cookie.


    Wrap your app with ConsentProvider (minimal example):

    import { ConsentProvider } from 'react-lgpd-consent'

    export default function App() {
    return (
    <ConsentProvider categories={{ enabledCategories: ['analytics'] }}>
    <YourApp />
    </ConsentProvider>
    )
    }

    1. Open an Issue for bugs or feature requests.
    2. Follow DEVELOPMENT.md to submit a PR.

    MIT — see the LICENSE file.