{"id":24516649,"url":"https://github.com/manjillama/plain-react-modal","last_synced_at":"2025-03-15T10:42:55.943Z","repository":{"id":57325503,"uuid":"283255587","full_name":"manjillama/plain-react-modal","owner":"manjillama","description":"Lightweight easy to use, highly customizable react modal","archived":false,"fork":false,"pushed_at":"2024-04-23T02:14:54.000Z","size":1076,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T03:04:28.330Z","etag":null,"topics":["modal","react","react-dom","react-modal"],"latest_commit_sha":null,"homepage":"https://codepen.io/manjiltamang/project/full/AJyNaq","language":"JavaScript","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/manjillama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2020-07-28T15:38:10.000Z","updated_at":"2021-07-29T15:04:38.000Z","dependencies_parsed_at":"2025-01-22T01:37:42.876Z","dependency_job_id":null,"html_url":"https://github.com/manjillama/plain-react-modal","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjillama%2Fplain-react-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjillama%2Fplain-react-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjillama%2Fplain-react-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjillama%2Fplain-react-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manjillama","download_url":"https://codeload.github.com/manjillama/plain-react-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719357,"owners_count":20336596,"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":["modal","react","react-dom","react-modal"],"created_at":"2025-01-22T01:27:02.888Z","updated_at":"2025-03-15T10:42:55.923Z","avatar_url":"https://github.com/manjillama.png","language":"JavaScript","readme":"# plain-react-modal\n\nLightweight easy to use, highly customizable react modal\n\n[![Build Status](https://travis-ci.org/manjillama/plain-react-modal.svg)](https://travis-ci.org/manjillama/plain-react-modal)\n[![NPM](https://img.shields.io/npm/v/plain-react-modal.svg)](https://www.npmjs.com/package/plain-react-modal) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![License](https://img.shields.io/github/license/manjillama/plain-react-modal.svg)](LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](CONTRIBUTING.md)\n\n## Installation\n\nTo install, you can use [npm](https://npmjs.org/) or [yarn](https://yarnpkg.com):\n\n    $ npm install plain-react-modal\n    $ yarn add plain-react-modal\n\n## Requirements\n\n- React \u003e= 16.x\n- ReactDOM \u003e= 16.x\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport Modal from 'plain-react-modal'\nimport 'plain-react-modal/dist/index.css'\n\nclass Example extends Component {\n  render() {\n    return (\n      \u003cModal\n        onClose={() =\u003e {\n          // code here\n        }}\n        title='Modal title'\n        overlayColor='rgba(255, 255, 255, .8)'\n        backgroundColor='#FFF'\n      \u003e\n        \u003cp\u003eWoohoo, you're reading this text in a modal!\u003c/p\u003e\n      \u003c/Modal\u003e\n    )\n  }\n}\n```\n\n## Options\n\n| Property           | Type    | Description                                                |\n| ------------------ | ------- | ---------------------------------------------------------- |\n| onClose (required) | func    | Called when user clicks on close button                    |\n| title              | String  | Modal title                                                |\n| overlayColor       | String  | Modal overlay color i.e. rgba(255, 255, 255, .8)           |\n| backgroundColor    | String  | Modal dialog background color i.e. #FFF                    |\n| noShadow           | boolean | Modal dialog shadow (default value is false)               |\n| styles             | object  | Modal css style i.e. {maxWidth: '960px', color: '#2c3543'} |\n\n## Demo\n\nDemo available at [CodePen](https://codepen.io/manjiltamang/project/full/AJyNaq)\n\n## Contributing\n\nPull requests are welcome! You can create an issue or send in a PR. Please see [here](https://github.com/manjillama/plain-react-modal/blob/master/CONTRIBUTING.md).\n\n## License\n\nMIT © [manjillama](https://github.com/manjillama)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanjillama%2Fplain-react-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanjillama%2Fplain-react-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanjillama%2Fplain-react-modal/lists"}