{"id":13726578,"url":"https://github.com/rescriptbr/rescript-toastify","last_synced_at":"2025-05-07T21:33:13.380Z","repository":{"id":52365949,"uuid":"281218903","full_name":"rescriptbr/rescript-toastify","owner":"rescriptbr","description":"ReasonML bindings for react-toastify","archived":true,"fork":false,"pushed_at":"2021-04-30T17:10:40.000Z","size":41,"stargazers_count":18,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-05-11T23:34:23.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ReScript","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/rescriptbr.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-07-20T20:27:20.000Z","updated_at":"2023-07-03T21:24:11.000Z","dependencies_parsed_at":"2022-09-13T17:01:38.190Z","dependency_job_id":null,"html_url":"https://github.com/rescriptbr/rescript-toastify","commit_stats":null,"previous_names":["reasonbr/bs-toastify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescriptbr%2Frescript-toastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescriptbr%2Frescript-toastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescriptbr%2Frescript-toastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescriptbr%2Frescript-toastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rescriptbr","download_url":"https://codeload.github.com/rescriptbr/rescript-toastify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224654313,"owners_count":17347723,"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":[],"created_at":"2024-08-03T01:03:13.427Z","updated_at":"2024-11-14T16:34:07.287Z","avatar_url":"https://github.com/rescriptbr.png","language":"ReScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"./assets/logo.svg\" width=\"450\" /\u003e \n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e • \n   \u003ca target=\"_blank\" href=\"#examples\"\u003eExamples\u003c/a\u003e •\n   \u003ca target=\"_blank\" href=\"https://github.com/reasonbr/bs-toastify/blob/master/src/ReactToastify.re\"\u003eDocumentation\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## Installation\nFirst run the below commands to install the dependencies:\n```bash\nyarn add @reasonbr/bs-toastify -D\nyarn add react-toastify\n```\nImport react-toastify's css somewhere in your code. You can use `[%bs.raw]` if you want to.\n```js\nimport \"react-toastify/dist/ReactToastify.css\";\n```\n\n## Examples\n```reason\nopen ReactToastify;\n\n[@react.component]\nlet make = () =\u003e {\n  let handleClick = () =\u003e {\n    let cb = {\n      Js.log(\"Cool\");\n      ();\n    };\n    toast-\u003esuccess(\n      \"Success\",\n      ReactToastify.options(\n        ~autoClose=3000,\n        ~hideProgressBar=false,\n        ~closeOnClick=false,\n        ~onClose=cb,\n        (),\n      ),\n    );\n\n    toast-\u003ewarning(\n      \"Warning\",\n      ReactToastify.options(\n        ~autoClose=3000,\n        ~position=`topRight,\n        ~hideProgressBar=false,\n        ~closeOnClick=false,\n        (),\n      ),\n    );\n    ();\n  };\n\n  \u003c\u003e\n    \u003cToastContainer position=`topRight autoClose=3000 transition=flip /\u003e\n    \u003ch1\u003e {\"Hello\" |\u003e ReasonReact.string} \u003c/h1\u003e\n    \u003cbutton onClick={_ =\u003e handleClick()}\u003e\n      {\"Click\" |\u003e ReasonReact.string}\n    \u003c/button\u003e\n  \u003c/\u003e;\n};\n\nlet default = make;\n```\n","funding_links":[],"categories":["ReScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescriptbr%2Frescript-toastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frescriptbr%2Frescript-toastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescriptbr%2Frescript-toastify/lists"}