@declarative-shadow-dom/react
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@declarative-shadow-dom/react

React component that makes it possible to use shadow DOM declaratively, with support for both server-side rendering and client-side rendering.

npm add @declarative-shadow-dom/react
import ShadowRoot from "@declarative-shadow-dom/react"

<div>
	<ShadowRoot>
		<div>Shadow DOM content</div>
		<slot />
	</ShadowRoot>

	<p>Light DOM content</div>
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i @declarative-shadow-dom/react

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • mayank-99