{"id":27133225,"url":"https://github.com/origenstudio/material-ui-cookie-consent","last_synced_at":"2025-04-07T23:20:04.578Z","repository":{"id":34181300,"uuid":"171046699","full_name":"OrigenStudio/material-ui-cookie-consent","owner":"OrigenStudio","description":"Allow cookies in your site with style! Material style! :sunglasses:","archived":false,"fork":false,"pushed_at":"2023-01-03T23:14:09.000Z","size":6746,"stargazers_count":17,"open_issues_count":50,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T23:19:58.498Z","etag":null,"topics":["cookies","javascript","material-design","material-ui","react"],"latest_commit_sha":null,"homepage":"https://material-ui-cookie-consent.origen.studio","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OrigenStudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-16T20:08:45.000Z","updated_at":"2024-04-09T09:53:35.000Z","dependencies_parsed_at":"2023-01-15T05:15:27.457Z","dependency_job_id":null,"html_url":"https://github.com/OrigenStudio/material-ui-cookie-consent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrigenStudio%2Fmaterial-ui-cookie-consent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrigenStudio%2Fmaterial-ui-cookie-consent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrigenStudio%2Fmaterial-ui-cookie-consent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrigenStudio%2Fmaterial-ui-cookie-consent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OrigenStudio","download_url":"https://codeload.github.com/OrigenStudio/material-ui-cookie-consent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744486,"owners_count":20988806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookies","javascript","material-design","material-ui","react"],"created_at":"2025-04-07T23:20:03.668Z","updated_at":"2025-04-07T23:20:04.573Z","avatar_url":"https://github.com/OrigenStudio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Material-UI Cookie Consent\n\nMaterial-UI component that show a cookie consent message.\n\n## Example\n\nCheck this [example site](https://material-ui-cookie-consent.origen.studio)\n\n## Dependencies\n\nThis package has the following peer dependencies that need to be installed manually:\n\n```json\n{\n    \"@material-ui/core\": \"^4.0.1\",\n    \"react\": \"^16.8.6\",\n    \"react-dom\": \"^16.8.6\"\n}\n```\n\n## Installation\n\n```sh\nyarn add material-ui-cookie-consent\n```\n\nor\n\n```sh\nnpm install material-ui-cookie-consent\n```\n\n## Usage - Simple example\n\n```js\nimport MUICookieConsent from 'material-ui-cookie-consent';\n\n// ....\n\u003cMUICookieConsent \n  cookieName=\"mySiteCookieConsent\"\n  componentType=\"Dialog\" // default value is Snackbar\n  message=\"This site uses cookies.... bla bla...\"\n/\u003e\n//....\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n#### Table of Contents\n\n-   [MUICookieConsent](#muicookieconsent)\n    -   [Parameters](#parameters)\n    -   [handleScroll](#handlescroll)\n    -   [handleAccept](#handleaccept)\n\n### MUICookieConsent\n\n**Extends React.Component**\n\nThis component is the MUICookieConsent it pops a Snackbar or a Dialog informing the user about cookie consent.\n\n#### Parameters\n\n-   `props` **Props** \n\n#### handleScroll\n\nchecks whether scroll has exceeded set amount and fire accept if so.\n\n#### handleAccept\n\nSet a persistent cookie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigenstudio%2Fmaterial-ui-cookie-consent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forigenstudio%2Fmaterial-ui-cookie-consent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigenstudio%2Fmaterial-ui-cookie-consent/lists"}