[]previous and next page

JSXElementNode

A JSX element.

A JSX element.

Import#

ts
import type { JSXElementNode } from "@shadow-js/compiler";

Signature#

ts
interface JSXElementNode extends PluginNode {
  /** `"JSXElement"`. */
  readonly type: "JSXElement";
  /** The opening tag. */
  readonly openingElement: JSXOpeningElementNode;
  /** The closing tag, or `null` for a self-closing element. */
  readonly closingElement: PluginNode | null;
  /** The children: text, `{}` containers and elements. */
  readonly children: readonly PluginNode[];
}

Members#

Name Type Description
type readonly type: "JSXElement" "JSXElement".
openingElement readonly openingElement: JSXOpeningElementNode The opening tag.
closingElement readonly closingElement: PluginNode | null The closing tag, or null for a self-closing element.
children readonly children: readonly PluginNode[] The children: text, {} containers and elements.