Skip to content

GenerativeUiComponentText

HTTP API schema

A2UI `Text`. Renders as Compose `Text` with the Port OS type scale: Markdown headings set the level: `#` headline, `##` page title, `###` section heading, `####` to `#####` subsection heading, `variant: body` (default) is body size and `variant: caption` is the smallest size, all in the default text color. Only simple Markdown is read (headings, emphasis); HTML, images and links are not.

GenerativeUiComponentText fields

idstringRequired

Unique id in the surface. One component in the surface has the id `root`.

minLength: 1

componentstringRequired

pattern: "^Text$"

variantstring

Base text style.

Default: body

Allowed values

  • body
  • caption
weightnumber

Share of the free space in the parent `Row` or `Column`. Only valid on a direct child of one.

minimum: 0

exclusiveMinimum: true

View source specification ↗