Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualText

A virtual node which represents plain text content.

Notes

User code will not typically create a VirtualText node directly. Instead, the h() function will be used to create an element tree.

Hierarchy

  • VirtualText

Index

Constructors

Properties

Constructors

constructor

  • Construct a new virtual text node.

    Parameters

    • content: string

      The text content for the node.

    Returns VirtualText

Properties

content

content: string

The text content for the node.

type

type: "text" = "text"

The type of the node.

This value can be used as a type guard for discriminating the VirtualNode union type.

Generated using TypeDoc