Skip to content

Properties

PropertyTypeDescription
elementHTMLElement
string
(optional) Defines the Element Type, like p.
size'x-small'
'small'
'basis'
'medium'
'large'
'x-large'
'xx-large'
(optional) Sets the font size, also sets the line-height if lineHeight prop is not set.
lineHeight'x-small'
'small'
'basis'
'medium'
'large'
'x-large'
'xx-large'
(optional) Sets the line height, will use same value as size if not set.
align'center'
'left'
'right'
(optional) Sets the text alignment.
family'basis'
'heading'
'monospace'
(optional) Sets the font family.
weight'regular'
'medium'
(optional) Sets the font weight.
decoration'underline'(optional) Sets the font decoration.
slant'italic'(optional) Sets the font style.
proseMaxWidthnumber(optional) Sets the maximum width based on character count. This will limit the text width to approximately the specified number of characters.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.