{"id":27215414,"url":"https://github.com/k4wo/react-notify","last_synced_at":"2025-04-10T04:15:45.170Z","repository":{"id":35327129,"uuid":"39589068","full_name":"k4wo/react-notify","owner":"k4wo","description":"Tiny React's module that shows notifications.","archived":false,"fork":false,"pushed_at":"2017-05-19T11:28:57.000Z","size":310,"stargazers_count":55,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T04:15:36.849Z","etag":null,"topics":["notification","notifications","notify","react","reactjs"],"latest_commit_sha":null,"homepage":"http://k4wo.github.io/react-notify/public/","language":"JavaScript","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/k4wo.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":"2015-07-23T19:53:50.000Z","updated_at":"2020-06-07T04:28:33.000Z","dependencies_parsed_at":"2022-08-04T01:00:18.890Z","dependency_job_id":null,"html_url":"https://github.com/k4wo/react-notify","commit_stats":null,"previous_names":["k4wo/reactnotify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4wo%2Freact-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4wo%2Freact-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4wo%2Freact-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4wo%2Freact-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k4wo","download_url":"https://codeload.github.com/k4wo/react-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154992,"owners_count":21056544,"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":["notification","notifications","notify","react","reactjs"],"created_at":"2025-04-10T04:15:44.679Z","updated_at":"2025-04-10T04:15:45.140Z","avatar_url":"https://github.com/k4wo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactNotify\n\n## ** [You can see demo here](http://k4wo.github.io/react-notify/public/) **\n\nModule of React that shows notifications / warnings. Just pass three arguments and it's all.\n* Title\n* Message (body)\n* Duration (in ms)\n\nYou can use three type of notification - *success*, *info*, *error*. You can set different appearance to each notification by css.  \n\n```javascript\nvar React = require('react');\nvar ReactNotify = require('react-notify');\n\nReact.createClass({\n\nshowNotification: function() {\n  //this.refs.notificator.error(\"Title.\", \"Msg - body.\", duration);\n  //this.refs.notificator.info(\"Title.\", \"Msg - body.\", duration);\n  this.refs.notificator.success(\"Title.\", \"Msg - body.\", 4000);\n},\n\nrender: function() {\n\t\treturn (\n\t\t\t\t\u003cdiv\u003e\n\t\t\t\t\t\u003cReactNotify ref='notificator'/\u003e\n\t\t\t\t\u003c/div\u003e\n\t\t);\n}\n});\n```\n# css\n\nYou can set appearance by css. For example it may looks like this.\n```css\n.notify-container {\n  display: flex;\n  flex-direction: column;\n  flex-wrap: wrap;\n  justify-content: flex-end;\n  align-items: flex-start;\n  align-content: flex-start;\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n\n.notify-item {\n  width: 250px;\n  margin: 5px 10px;\n  color: #FFF;\n  border-radius: 5px;\n}\n\n.notify-item:hover {\n  opacity: 0.8;\n  box-shadow: 0 0 10px 0 rgb(15, 15, 15);\n}\n\n.notify-item \u003e p {\n  font-family: 'Lora', serif;\n  margin: 10px;\n  opacity: .8;\n}\n\n.notify-item.success {\n  background-color: rgba(81, 163, 81, 0.4);\n}\n\n.notify-item.error {\n  background-color: rgba(203, 100, 94, 0.8);\n}\n\n.notify-item.info {\n  background-color: rgba(33, 150, 243, 0.8);\n}\n\n.notify-title {\n  font-weight: 700;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4wo%2Freact-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk4wo%2Freact-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4wo%2Freact-notify/lists"}