{"id":28279249,"url":"https://github.com/delpikye-v/react-modal","last_synced_at":"2026-01-26T23:44:00.261Z","repository":{"id":44324381,"uuid":"512044692","full_name":"delpikye-v/react-modal","owner":"delpikye-v","description":"React-hook modal portal. (create npm lib)","archived":false,"fork":false,"pushed_at":"2022-11-08T16:05:57.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T01:13:57.171Z","etag":null,"topics":["modal","react-modal","react-ts"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-modal-e2z","language":null,"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/delpikye-v.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":"2022-07-08T22:52:49.000Z","updated_at":"2022-07-11T18:51:51.000Z","dependencies_parsed_at":"2022-08-25T14:00:39.681Z","dependency_job_id":null,"html_url":"https://github.com/delpikye-v/react-modal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/delpikye-v/react-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delpikye-v","download_url":"https://codeload.github.com/delpikye-v/react-modal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-modal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28791374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["modal","react-modal","react-ts"],"created_at":"2025-05-21T09:14:16.765Z","updated_at":"2026-01-26T23:44:00.255Z","avatar_url":"https://github.com/delpikye-v.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003ereact-modal-e2z\u003c/h1\u003e\n    \u003ca href=\"https://github.com/delpikye-v/react-modal\"\u003ereact-modal-e2z\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003cb\u003e\u003ca href=\"https://codesandbox.io/s/t4wfop\"\u003eLIVE EXAMPLE\u003c/a\u003e\u003c/b\u003e\n\u003c/div\u003e\n\n---\n\n#### Description\n\n+ Simple modal.\n+ Append to portal\n\n---\n### Usage\n\nInstall the package\n\n```js\nnpm install --save react-modal-e2z\n```\n\nImport the module in the place you want to use:\n```js\nimport \"react-modal-e2z/build/styles.css\";\nimport Modal from \"react-modal-e2z\";\n\n```\n\n#### Snippet\n```js\n    const [isShow, setShow] = React.useState(false);\n\n    \u003cModal isOpen={isShow} center handleOpen={setShow}\u003e\n        This is modal\n\n        {/* \u003cModal\u003e\n          {[...Array(10)].map((item, index) =\u003e {\n            return \u003cdiv key={index}\u003eindex {index}\u003c/div\u003e;\n          })}\n        \u003c/Modal\u003e */}\n    \u003c/Modal\u003e\n```\n\n---\n\n\n#### props\n\nsee \u003cb\u003eindex.d.ts\u003c/b\u003e\n\n| props                | type                          | description                                                                |\n|----------------------|-------------------------------|----------------------------------------------------------------------------|\n|id?                   | string\n|modalId?              | string\n|isOpen?               | boolean\n|center?               | boolean  (false)\n|className?            | string\n|showHeader?           | boolean (true)\n|showFooter?           | boolean\n|modalTitle?           | string\n|modalHeader?          | ReactNode\n|modalFooter?          | ReactNode\n|customizeXClose?      | string / React.ReactNode;\n|alignFooter?:         | \"RIGHT\" / \"CENTER\" / \"LEFT\"\n|fullButtonhMobile?:   | boolean;\n|showExtraButton?      | boolean (false)\n|showAcceptButton?     | boolean (true)\n|showCancelButton?     | boolean (true)\n|showXClose?           | boolean (true)\n|disabledClose?        | boolean (false)\n|escapeClose?          | boolean (true)\n|outSideClose?         | boolean (true)\n|toggleTitleExpand?    | boolean (false)  (dbClickEvent)\n|fullSceen?            | boolean (false)\n|\u0026nbsp;                |\n|classNameAccept?      | string\n|classNameCancel?      | string\n|classNameExtra?       | string\n|labelAccept?          | string  (\"OK\")\n|labelCancel?          | string (\"CANCEL\")\n|labelExtra?           | string (\"EXTRA\")\n|handleToggle?         | Function // fullSceen or default\n|handleAccept?         | Function\n|handleCancel?         | Function\n|handleXClose?         | Function // default like handleCancel\n|handleExtra?          | Function // when showExtraButton = true\n|handleOpen?           | Function // =\u003e handle show modal\n\n\u003cbr /\u003e\n\n#### Note\nclass for button action:\nmodal2-danger-button, modal2-light-button, modal2-primary-button, modal2-secondary-button\n\u003cbr /\u003e\n\n#### RUN\n\n\u003cb\u003e\u003ca href=\"https://codesandbox.io/u/delpi.k\"\u003eLIVE EXAMPLE\u003c/a\u003e\n\n\u003cbr /\u003e\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelpikye-v%2Freact-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelpikye-v%2Freact-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelpikye-v%2Freact-modal/lists"}