Include
Fetches an external HTML file and renders it inline. Loads eagerly by default, or lazy to defer until it scrolls into view.
Preview
Section titled “Preview”<nana-include src="/fragments/example.html"></nana-include> Installation
Section titled “Installation”npm install @nana-tec/ui-componentsImport
Section titled “Import”import "@nana-tec/ui-components/include";Basic usage
Section titled “Basic usage”<nana-include src="/fragments/example.html"></nana-include>Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
allowScripts | allow-scripts | boolean | false | Re-inject and execute any ` |