$ rezi
Widgets

RichText

Renders multiple styled spans as a single text line.

Renders multiple styled spans as a single text line.

Usage

ui.richText([
  { text: "Error: ", style: { fg: rgb(255, 0, 0), bold: true } },
  { text: "File not found" },
])

Props

PropTypeDefaultDescription
spans{ text: string; style?: TextStyle }[]requiredStyled text spans

Notes

  • Spans are concatenated and rendered as a single visual line.
  • For multi-line rich text, compose multiple RichText or Text widgets in a column.

On this page