{"id":23413138,"url":"https://github.com/notprometey/react-slots","last_synced_at":"2026-04-30T09:37:53.322Z","repository":{"id":59082711,"uuid":"535302583","full_name":"NotPrometey/react-slots","owner":"NotPrometey","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-17T17:34:25.000Z","size":645,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T04:39:52.091Z","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/NotPrometey.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-09-11T13:11:55.000Z","updated_at":"2022-09-21T06:49:02.000Z","dependencies_parsed_at":"2023-01-18T12:45:29.583Z","dependency_job_id":null,"html_url":"https://github.com/NotPrometey/react-slots","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/NotPrometey%2Freact-slots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotPrometey%2Freact-slots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotPrometey%2Freact-slots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotPrometey%2Freact-slots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotPrometey","download_url":"https://codeload.github.com/NotPrometey/react-slots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980826,"owners_count":21027803,"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-12-22T19:25:12.828Z","updated_at":"2026-04-30T09:37:53.284Z","avatar_url":"https://github.com/NotPrometey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React slots\n\nslots for react app. You can find a demo [here](https://notprometey.github.io/react-slots/)\n\n[![NPM](https://img.shields.io/npm/v/@notprometey/react-slots.svg)](https://www.npmjs.com/package/@notprometey/react-slots) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save @notprometey/react-slots\n```\n\n## Usage\n\n```tsx\nimport React from 'react'\nimport { Slot, withSlots } from '@notprometey/react-slots';\n\nconst Modal = () =\u003e {\n  return (\n    \u003cdiv\u003e\n      \u003cSlot\u003edefault content of default slot\u003c/Slot\u003e\n      \u003cSlot name='test'\u003edefault content of test slot\u003c/Slot\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default withSlots(Modal);\n```\n\n```tsx\nimport React from 'react'\nimport { Template } from '@notprometey/react-slots';\n\nimport Modal from './components/Modal';\n\nconst App = () =\u003e {\n  return (\n    \u003cModal\u003e\n      \u003cspan\u003econtent to default slot\u003c/span\u003e\n      \u003cTemplate slot='test'\u003econtent to test slot\u003c/Template\u003e\n    \u003c/Modal\u003e\n  );\n};\n```\n\n## License\n\nMIT © [notprometey](https://github.com/notprometey)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotprometey%2Freact-slots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotprometey%2Freact-slots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotprometey%2Freact-slots/lists"}