Builder

constructor(text: String, type: BannerComponents.Type)

Parameters

text

A snippet of the full BannerText.text which can be used for visually altering parts of the full string.

type

String giving you more context about the component which may help in visual markup/display choices. If the type of the components is unknown it should be treated as text.