{"id":15533575,"url":"https://github.com/perfectbase/dialog-and-snackbar-react","last_synced_at":"2026-05-03T23:37:17.514Z","repository":{"id":41295406,"uuid":"509059271","full_name":"perfectbase/dialog-and-snackbar-react","owner":"perfectbase","description":"How to use Context to facilitate calling a Dialog or Snackbar.","archived":false,"fork":false,"pushed_at":"2022-06-30T15:17:17.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T10:36:34.006Z","etag":null,"topics":["material-ui","nextjs","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perfectbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-30T11:51:28.000Z","updated_at":"2022-07-01T09:50:20.000Z","dependencies_parsed_at":"2022-09-11T12:30:47.884Z","dependency_job_id":null,"html_url":"https://github.com/perfectbase/dialog-and-snackbar-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perfectbase/dialog-and-snackbar-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perfectbase%2Fdialog-and-snackbar-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perfectbase%2Fdialog-and-snackbar-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perfectbase%2Fdialog-and-snackbar-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perfectbase%2Fdialog-and-snackbar-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perfectbase","download_url":"https://codeload.github.com/perfectbase/dialog-and-snackbar-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perfectbase%2Fdialog-and-snackbar-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["material-ui","nextjs","reactjs"],"created_at":"2024-10-02T11:38:38.490Z","updated_at":"2026-05-03T23:37:17.487Z","avatar_url":"https://github.com/perfectbase.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About the project\n\nThis project uses Context Provider and Promise so you can easily call a modal or a Snackbar from anywhere in the app.\n\n```typescript\n// ...\nconst showDialog = useDialog();\nconst showSnackbar = useSnackbar();\n\nconst handleShowDialog = async () =\u003e {\n  const confirmed = await showDialog({\n    title: 'Custom Dialog',\n    message: 'Custom message...',\n  });\n  if (confirmed) {\n    showSnackbar('Confirmed!', 'success');\n  } else {\n    showSnackbar('Canceled!', 'error');\n  }\n};\n// ...\n```\n\n## Check the article\n\nhttps://blog.perfect-base.com/react-dialog-snackbar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectbase%2Fdialog-and-snackbar-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperfectbase%2Fdialog-and-snackbar-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectbase%2Fdialog-and-snackbar-react/lists"}