# Wildhoney/ReactShadow

:beginner: Utilise Shadow DOM in React with all the benefits of style encapsulation.

Repository: https://github.com/Wildhoney/ReactShadow
Canonical: https://ross.abutalabs.com/products/reactshadow
Homepage: https://react-shadow.herokuapp.com/
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, reactjs, shadow-dom, webcomponents, components, style-encapsulation, shadow-boundary, css-document, css, css-isolation, custom-elements, encapsulation, frontend, hooks, javascript, typescript, scoped-styles
Last push: 2025-01-09T16:26:14+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4220, "days_push": 601, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1382, forks 82 (observed 2026-08-28T04:04:34.464371+00:00)

## What it is
ReactShadow (npm: react-shadow) is a small React library for creating Shadow DOM roots declaratively via components like root.div, giving full style encapsulation within React apps. It supports styled-components and emotion integration so their styles are scoped to the shadow boundary.

## Use cases
- encapsulate styles in react components with shadow dom
- prevent css leaking between react components
- use styled-components inside shadow dom
- build isolated embeddable react widgets
- scope css to a component boundary in react

## When to choose
- you need true style isolation in a React app
- you're building embeddable widgets that must not clash with host page CSS
- you want declarative Shadow DOM without leaving JSX

## When to avoid
- you only need CSS modules or scoped class names rather than real encapsulation
- your app must support very old browsers without Shadow DOM
- you don't use React

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework, css-framework
- domain: web-development, frontend
- platform: browser
- tags: shadow-dom, style-encapsulation, web-components, react-hooks, scoped-styles, css-isolation, nodejs, javascript

## Member repositories
- Wildhoney/ReactShadow (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.464371+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:05.938808+00:00, confidence not recorded.
  - readme: https://github.com/Wildhoney/ReactShadow (fetched 2026-08-28T04:04:34.464371+00:00, sha 39db3b899544)
- Data as of 2026-08-30T08:39:29.467469+00:00.
