Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Init doc"v8.9.05/7/2026
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
What is the IntlayerNode type?
The IntlayerNode<T> type is a special type provided by intlayer's packages such as next-intlayer, react-intlayer, vue-intlayer, preact-intlayer, solid-intlayer, angular-intlayer, svelte-intlayer, lit-intlayer and vanilla-intlayer.
Example of usage
Copy the code to the clipboard
import { t, type Dictionary } from "intlayer";
import type { ComponentChildren } from "preact";
const appContent = {
key: "app",
content: {
title: "Vite + Preact",
},
} satisfies Dictionary;
export default appContent;
Copy the code to the clipboard
Why Intlayer insert an IntlayerNode?
Intlayer insert an IntlayerNode to be able to render the visual editor Selectors in the context of the CMS / Visual Editor.

An IntlayerNode is an enriched React/Vue/Preact/Solid/Angular/Svelte/Lit/Vanilla Node, but also to access the properties of the base primitive node.
For instance:
Copy the code to the clipboard
Accessing the properties of an IntlayerNode will work, but will break the ability to display the selectors in the Visual Editor.
The IntlayerNode can also wrap and number, or other types such as IntlayerNode<number>