Skip to main content

Text

Text is a control for displaying text.

Examples​

Properties​

NameTypeDefaultDescription
valuestringThe text displayed.
markdownboolfalseTreat value as markdown. GitHub Flavored Markdown is supported.
alignstringleftleft, center, right, justify
verticalAlignstringtop, center, bottom
sizestringtiny, xSmall, small, smallPlus, medium, mediumPlus, large, xLarge, xxLarge, superLarge, mega
boldboolfalseWhether font weight is bold.
italicboolfalseWhether font style is italic.
preboolfalsePreformatted text in monospace font.
nowrapboolfalseWhether the text is not wrapped.
blockboolfalseWhether the text is displayed as a block element.
colorstringFont color.
bgcolorstringText background color.
borderWidthstringBorder width in pixels around control, e.g. 1. Multiple values separated with spaces can be provided to set border width for each of the sides: top right bottom left, e.g. 2 0 2 0.
borderColorstringBorder color around control. Multiple values separated with spaces can be provided to set border color for each of the sides: top right bottom left, e.g. yellow green blue gray.
borderStylestringBorder style around control: none (default), dotted, dashed, solid, double, groove, ridge, inset, outset. Multiple values separated with spaces can be provided to set border style for each of the sides: top right bottom left, e.g. solid none none none.
borderRadiusstringBorder radius in pixels around control, e.g. 5. Multiple values separated with spaces can be provided to set border style for each of the sides: top right bottom left, e.g. 10 10 0 0.