Module: core/node
This module defines the core node and element interfaces for AI.JSX.
See: https://ai-jsx.com for more details.
Interfaces
Type Aliases
Component
Ƭ Component<P
>: (props
: P
, context
: ComponentContext
) => Renderable
Type parameters
Name |
---|
P |
Type declaration
▸ (props
, context
): Renderable
Represents a single AI.JSX component.
Parameters
Name | Type |
---|---|
props | P |
context | ComponentContext |
Returns
Defined in
packages/ai-jsx/src/core/node.ts:19
Literal
Ƭ Literal: string
| number
| null
| undefined
| boolean
A Literal represents a literal value.
Defined in
packages/ai-jsx/src/core/node.ts:24
Node
Ƭ Node: Element
<any
> | Literal
| Node
[] | IndirectNode
A Node represents an element of an AI.JSX component tree.
Defined in
packages/ai-jsx/src/core/node.ts:52
Functions
withContext
▸ withContext(renderable
, context
): Node
Parameters
Name | Type |
---|---|
renderable | Renderable |
context | RenderContext |