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:18
Literal
Ƭ Literal: string
| number
| null
| undefined
| boolean
A Literal represents a literal value.
Defined in
packages/ai-jsx/src/core/node.ts:23
Node
Ƭ Node: Element
<any
> | Literal
| Node
[] | IndirectNode
A Node represents an element of an AI.JSX component tree.