{"id":16388526,"url":"https://github.com/mohamedsamara/react-snackbar-messages","last_synced_at":"2025-08-04T06:34:15.040Z","repository":{"id":57345000,"uuid":"291883910","full_name":"mohamedsamara/react-snackbar-messages","owner":"mohamedsamara","description":":rocket: A Simple React snackbar messages","archived":false,"fork":false,"pushed_at":"2020-09-28T02:30:57.000Z","size":77,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T19:05:58.686Z","etag":null,"topics":["alert","messages","notification","react","snackbar","snackbars","toast"],"latest_commit_sha":null,"homepage":"https://mohamedsamara.github.io/react-snackbar-messages","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/mohamedsamara.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-09-01T03:15:15.000Z","updated_at":"2024-09-18T10:00:36.000Z","dependencies_parsed_at":"2022-09-16T18:00:22.929Z","dependency_job_id":null,"html_url":"https://github.com/mohamedsamara/react-snackbar-messages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Freact-snackbar-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Freact-snackbar-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Freact-snackbar-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Freact-snackbar-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedsamara","download_url":"https://codeload.github.com/mohamedsamara/react-snackbar-messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238319584,"owners_count":19452362,"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":["alert","messages","notification","react","snackbar","snackbars","toast"],"created_at":"2024-10-11T04:29:18.610Z","updated_at":"2025-02-11T15:31:52.347Z","avatar_url":"https://github.com/mohamedsamara.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Snackbar Messages\n\n## Getting Started\n\n### Installation\n\n```\nnpm install --save react-snackbar-messages\n```\n\nor\n\n```\nyarn add react-snackbar-messages\n```\n\n### Usage\n\nWrap your application within a `SnackbarProvider`.\n\n```jsx\nimport { SnackbarProvider, useSnackbar } from 'react-snackbar-messages'\n\nconst ChildComponent = () =\u003e {\n  const snackbar = useSnackbar()\n\n  const showSnackbar = () =\u003e {\n    snackbar.add('Hello Snackbar!', {\n      appearance: 'success',\n      autoDismiss: true\n    })\n  }\n\n  return \u003cbutton onClick={showSnackbar}\u003eShow Snackbar\u003c/button\u003e\n}\n\nconst App = () =\u003e (\n  \u003cSnackbarProvider\u003e\n    \u003cChildComponent /\u003e\n  \u003c/SnackbarProvider\u003e\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedsamara%2Freact-snackbar-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedsamara%2Freact-snackbar-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedsamara%2Freact-snackbar-messages/lists"}