Interface: Element<P>
core/node.Element
An Element represents an instance of an AI.JSX component, with an associated tag, properties, and a render function.
Type parameters
Name |
---|
P |
Properties
props
• props: P
The component properties.
Defined in
packages/ai-jsx/src/core/node.ts:33
render
• render: (renderContext
: RenderContext
, logger
: Logger
) => Renderable
Type declaration
▸ (renderContext
, logger
): Renderable
A function that renders this Element to a Renderable.
Parameters
Name | Type |
---|---|
renderContext | RenderContext |
logger | Logger |
Returns
Defined in
packages/ai-jsx/src/core/node.ts:35
tag
• tag: Component
<P
>
The tag associated with this Element.
Defined in
packages/ai-jsx/src/core/node.ts:31
[attachedContextSymbol]
• Optional
[attachedContextSymbol]: RenderContext
The RenderContext associated with this Element.