Declarative Shadow DOM (DSD) SSR
Server-rendered in pure Node.js using renderComponentToDSD(). Inspect Page Source to see real
<template shadowrootmode="open"> markup emitted before any client JavaScript runs.
renderComponentToDSD() into standard
<template shadowrootmode="open">. Even with JavaScript disabled (?hydrate=0),
Shadow DOM styles and slots paint immediately with zero FOUC or layout shift.1. Server-Painted Actions
Buttons render with full Shadow DOM styling before client JS downloads. When hydrated, the primary button becomes reactive.
2. Telemetry & Status Primitives
NE
Pure Node.js Edge Worker
Zero happy-dom · Zero bundler · Native ESM
Test Coverage96%
Edge Memory Headroom72%
Emitted Declarative Shadow DOM Output
HTML
<el-button variant="primary" size="md"><template shadowrootmode="open"><style>
:host {
display: inline-block;
vertical-align: middle;
}
:host([disabled]),
:host([aria-disabled="true"]) {
cursor: not-allowed;
}
button
/* ...encapsulated shadow styles... */
<slot name="prefix"></slot>
<slot></slot>
<slot name="suffix"></slot>
</button>
</template>Deploy Now</el-button>
/ssr?hydrate=0 · Mode: Pure Zero-JS DSD