Skip to content
Nana UI

Include

View .md Download

Fetches an external HTML file and renders it inline. Loads eagerly by default, or lazy to defer until it scrolls into view.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/include";
<nana-include src="/fragments/example.html"></nana-include>

Properties

PropertyAttributeTypeDefaultDescription
allowScriptsallow-scriptsbooleanfalseRe-inject and execute any `