A representation of a run of text in a given style

Constructors

Accessors

Methods

Constructors

Accessors

  • get ansi(): string
  • a representation of the block as an ANSI styled string

    Returns string

  • get style(): undefined | Style
  • the Style used by this block

    Returns undefined | Style

  • get text(): string
  • the raw text that will be written

    Returns string

Methods

  • return the block as a styled <span> tag

    Returns string