@declarative-shadow-dom/preact
v0.1.0
Published
Preact component to use declarative shadow DOM
Downloads
3
Readme
@declarative-shadow-dom/preact
Peact 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/preact
import ShadowRoot from "@declarative-shadow-dom/preact"
<div>
<ShadowRoot>
<div>Shadow DOM content</div>
<slot />
</ShadowRoot>
<p>Light DOM content</div>
</div>