# generaltranslation: General Translation Core SDK: JsxChildren URL: https://generaltranslation.com/it/docs/core/types/jsx-children.mdx --- title: JsxChildren description: Definizione del tipo per contenuti JSX traducibili e renderizzabili --- ## Panoramica `JsxChildren` rappresenta contenuti JSX che includono testo, elementi e variabili da tradurre. ```typescript type JsxChildren = JsxChild | JsxChild[]; ``` ## Struttura ```typescript type JsxChild = string | JsxElement | Variable; ``` | Type | Descrizione | | ------------ | -------------------- | | `string` | Testo semplice | | `JsxElement` | Elemento strutturato | | `Variable` | Segnaposto dinamico | ### JsxElement ```typescript type JsxElement = { t?: string; // nome del tag i?: number; // id d?: GTProp; // proprietà GT c?: JsxChildren; // elementi figli }; ``` ## Esempi ### Utilizzo di base ```typescript copy import { JsxChildren, Variable } from 'generaltranslation'; // Testo semplice const text: JsxChildren = "Welcome!"; // Testo con variabili const greeting: JsxChildren = [ "Hello, ", { k: 'userName' } as Variable, "!" ]; ``` ### Elementi strutturati ```typescript copy // Elemento div const divElement: JsxChildren = { t: 'div', c: ['Content here'] }; // Link con titolo const linkElement: JsxChildren = { t: 'a', d: { ti: 'Visit homepage' }, c: ['Click here'] }; ``` ## Tipi correlati * [`JsxChild`](/docs/core/types/jsx-child) - Tipi di singoli elementi figlio * [`JsxElement`](/docs/core/types/jsx-element) - Definizioni di elementi strutturati