Nucleus Stack
A set of HTML app development tools for displaying templates when and where they are needed.
What does it do?
Place a template inside an include-content element, or use template-ref to specify a template or URL. Use is-active to toggle visibility, and lazy-load and lazy-unload to load or remove content as it enters or leaves the viewport. By default, content renders in the element's light DOM. Set host-ref to render it elsewhere, such as in a shadow DOM or iframe. With persist-content, nodes retaining state such as input values are reused when displayed again.
Key features
- Render content from an internal template or URL
- Toggle conditional display with is-active
- Load and unload content as it enters or leaves the viewport
- Render in a shadow DOM, iframe, or CSS selector target with host-ref
- Preserve state such as input values when displaying content again with persist-content