Skip to content

Properties

PropertyTypeDescription
elementHTMLElement
string
(optional) Defines the Element Type, like p.
mediumboolean(optional) Tells the component to use the medium font-weight styling dnb-p--medium. More details here.
boldboolean(optional) Tells the component to use the bold font-weight styling class dnb-p--bold. More details here.
sizestring(optional) Sets the font size based on the following sizes: x-small, small, basis, medium, large, x-large or xx-large.
modifierstring(optional) String containing a combination of modifiers, used to set both font-size and weight in one property. e.g. x-small bold would make the paragraph extra small and bold.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.