OptionalmodeOptionalstylesConstructable stylesheet(s) to adopt. Applied whether the tree was prerendered or freshly rendered — Declarative Shadow DOM markup ships without the constructable sheet (it isn't serialized), so the shared sheet (see banira's CSS lowering) styles the adopted tree on hydration.
OptionaltemplateMarkup to render into the shadow root when the host was not prerendered (root is empty).
Mode used when creating a shadow root (only when the host wasn't prerendered). Default
'open'.