{"id":20164259,"url":"https://github.com/cyril-develop/custom-modal-reactjs","last_synced_at":"2025-10-08T01:11:34.828Z","repository":{"id":234866205,"uuid":"789669463","full_name":"Cyril-Develop/custom-modal-reactjs","owner":"Cyril-Develop","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-11T08:35:14.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T00:38:29.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Cyril-Develop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-21T08:08:19.000Z","updated_at":"2024-05-11T08:35:17.000Z","dependencies_parsed_at":"2024-05-11T09:32:30.068Z","dependency_job_id":null,"html_url":"https://github.com/Cyril-Develop/custom-modal-reactjs","commit_stats":null,"previous_names":["cyril-develop/custom-modal-reactjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cyril-Develop/custom-modal-reactjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyril-Develop%2Fcustom-modal-reactjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyril-Develop%2Fcustom-modal-reactjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyril-Develop%2Fcustom-modal-reactjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyril-Develop%2Fcustom-modal-reactjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyril-Develop","download_url":"https://codeload.github.com/Cyril-Develop/custom-modal-reactjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyril-Develop%2Fcustom-modal-reactjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278872794,"owners_count":26060643,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-14T00:33:46.570Z","updated_at":"2025-10-08T01:11:34.800Z","avatar_url":"https://github.com/Cyril-Develop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Modal\n\n## 🚀 Getting Started\n\nInstall This package :\n```\nnpm install reactjs-custom-modal\n```\n\n![Screenshot](./src/assets/screenshot.png)\n\n## ✨ Example:\n```js\nimport React, { useState } from 'react';\nimport { Modal } from \"reactjs-custom-modal\";\n\nfunction App() {\n  const [isModalOpen, setIsModalOpen] = useState(false);\n\n  const openModal = () =\u003e {\n    setIsModalOpen(true);\n  };\n\n  const closeModal = () =\u003e {\n    setIsModalOpen(false);\n  };\n\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={openModal}\u003eOpen Modal\u003c/button\u003e\n      \u003cModal text=\"Example Text\" isOpen={isModalOpen} onClose={closeModal} textColor=\"#fff\" backgroundColor=\"#157846\" iconColor=\"red\"/\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default App;\n```\n\n## 📌 Props\n\n| Prop              | Description                                   | Default     |     \n|-------------------|-----------------------------------------------|-------------|\n| text              | The text that will be displayed in the modal |             |\n| isOpen            | A boolean that will open the modal if true   |             |\n| onClose           | The function that will close the modal       |             |\n| textColor         | The color of the text in the modal           | #fff (white)|\n| backgroundColor   | The background color of the modal             | #157846 (green) |\n| iconColor   | The color of the icon            | red |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyril-develop%2Fcustom-modal-reactjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyril-develop%2Fcustom-modal-reactjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyril-develop%2Fcustom-modal-reactjs/lists"}