{"id":15369145,"url":"https://github.com/developit/preact-shadow-root","last_synced_at":"2025-07-17T00:05:29.168Z","repository":{"id":66020068,"uuid":"118177255","full_name":"developit/preact-shadow-root","owner":"developit","description":"🕴 Render a Preact subtree into the Shadow DOM.","archived":false,"fork":false,"pushed_at":"2020-03-03T20:52:35.000Z","size":5,"stargazers_count":73,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T15:51:38.482Z","etag":null,"topics":["preact","preact-components","shadow-dom"],"latest_commit_sha":null,"homepage":"https://npm.im/preact-shadow-root","language":"JavaScript","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/developit.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":"2018-01-19T20:53:20.000Z","updated_at":"2023-07-24T18:53:13.000Z","dependencies_parsed_at":"2023-03-10T23:29:27.964Z","dependency_job_id":null,"html_url":"https://github.com/developit/preact-shadow-root","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"1660f65461099656577042dde2f3d5f9919deca9"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/developit/preact-shadow-root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-shadow-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-shadow-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-shadow-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-shadow-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/preact-shadow-root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-shadow-root/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265553126,"owners_count":23787028,"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":["preact","preact-components","shadow-dom"],"created_at":"2024-10-01T13:34:24.437Z","updated_at":"2025-07-17T00:05:29.110Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"# preact-shadow-root\n\nA tiny `\u003cShadow\u003e` component that renders its children into the Shadow DOM.\n\n🔥 [**JSFiddle Demo**](https://jsfiddle.net/developit/rw72nx24/)\n\n### Usage\n\n```js\nimport Shadow from 'preact-shadow-root'\n\nconst Demo = () =\u003e (\n  \u003cdiv class=\"foo\"\u003e\n    \u003cShadow\u003e\n      \u003cdiv class=\"foo\"\u003e\n        I am rendered into the Shadow DOM.\n        \u003cstyle\u003e{`\n          .foo {\n            border: 2px solid red;\n          }\n        `}\u003c/style\u003e\n      \u003c/div\u003e\n    \u003c/Shadow\u003e\n  \u003c/div\u003e\n)\n```\n\nIn the above demo, only the `\u003cdiv class=\"foo\"\u003e` within `\u003cShadow\u003e` will be given a red border.\n\n---\n\n### License\n\n[MIT License](https://oss.ninja/mit/developit) © [Jason Miller](https://jasonformat.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-shadow-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpreact-shadow-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-shadow-root/lists"}