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 line prop is not set.
line'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'italic'
'underline'
(optional) Sets the font decoration.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.