{"id":26847999,"url":"https://github.com/damevin/reactlightmodal","last_synced_at":"2026-05-11T03:19:12.787Z","repository":{"id":44780539,"uuid":"447142300","full_name":"damevin/ReactLightModal","owner":"damevin","description":"ReactLightModal is a modal library, built in typescript light and accessible.","archived":false,"fork":false,"pushed_at":"2022-01-25T08:25:59.000Z","size":602,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T00:43:11.666Z","etag":null,"topics":["accessibility","library","lightweight","modal","react","typescript"],"latest_commit_sha":null,"homepage":"https://reactlightmodal.xyz","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/damevin.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":"2022-01-12T08:52:28.000Z","updated_at":"2022-01-27T16:13:08.000Z","dependencies_parsed_at":"2022-09-05T02:41:23.455Z","dependency_job_id":null,"html_url":"https://github.com/damevin/ReactLightModal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damevin%2FReactLightModal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damevin%2FReactLightModal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damevin%2FReactLightModal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damevin%2FReactLightModal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damevin","download_url":"https://codeload.github.com/damevin/ReactLightModal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379384,"owners_count":20767694,"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":["accessibility","library","lightweight","modal","react","typescript"],"created_at":"2025-03-30T20:37:04.809Z","updated_at":"2026-05-11T03:19:07.758Z","avatar_url":"https://github.com/damevin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://user-images.githubusercontent.com/72107589/149128610-e2e79c72-2df6-4315-b632-1a71c5ef84f4.png)\n\nReactLightModal is a modal library, built in typescript light and accessible. It's goal is to provide easy, flexible, configurable and accessible way to display modals for your application.\n\n## Documentation\n\n[See our Storybook Documentation](https://reactlightmodal.xyz)\n\n## Authors\n\n- [@raphaeldamevin](https://www.github.com/damevin)\n\n## Demo\n\n![demo gif](https://user-images.githubusercontent.com/72107589/149371773-01322567-8701-43f6-b0f5-940a84859318.gif)\n\n## Installation\n\nInstall ReactLightModal with npm\n\n```bash\nnpm i reactlightmodal-by-damevin\n```\n\nInstall ReactLightModal with yarn\n\n```bash\nyarn add reactlightmodal-by-damevin\n```\n\n## Usage/Examples\n\n```javascript\nimport Modal from 'reactlightmodal-by-damevin';\nimport React, {useState} from \"react;\n\nconst [modal, setModal] = useState(false);\n\nconst toggleModal = () =\u003e {\n    setModal(!modal)\n}\n\nfunction App() {\n  return (\n      \u003cModal /\u003e\n  )\n}\n```\n\n## Props\n\n| Name            | Type          | Required | Description                                                              | Default value     |\n| --------------- | ------------- | -------- | ------------------------------------------------------------------------ | ----------------- |\n| canClose        | `boolean`     | `false`  | Display cross button on the top-right of the modal box                   | `true`            |\n| closeBtnContent | `JSX.element` | `false`  | Custom content add on the close button (exemple: personalized icon, ...) | `{\u003cspan\u003eX\u003c/span}` |\n| footerContent   | `JSX.element` | `false`  | Custom content to add to the footer (exemple: action buttons, ...)       | `{}`              |\n| haveFooter      | `boolean`     | `false`  | If his value is true, the modal have footer element                      | `false`           |\n| isOpen          | `boolean`     | `true`   | If his value is true, the modal is displayed                             | `false`           |\n| modalContent    | `JSX.element` | `true`   | Content of the modal                                                     | `{}`              |\n| title           | `string`      | `false`  | Modal header title                                                       | `\"\"`              |\n\n## Running Tests\n\nTo run tests, run the following command\n\n```bash\n  npm run test\n```\n\n## Contributing\n\nContributions are always welcome!\n\nSee `contributing.md` for ways to get started.\n\nPlease adhere to this project's `code of conduct`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamevin%2Freactlightmodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamevin%2Freactlightmodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamevin%2Freactlightmodal/lists"}