Text

Text

import Text from "@kiwicom/orbit-components/lib/Text";
<Text>Hello World!</Text>

Props

NameTypeDefaultDescription
asenum"p"The element used for the root node.
alignenum"left"The align of the Text.
childrenReact.NodeThe content of the Text.
dataTeststringOptional prop for testing purposes.
idstringThe id HTML attribute.
italicbooleanfalseIf true, the Text will be in italic style.
sizeenum"normal"The size of the Text.
typeenum"primary"The color type of the Text.
uppercasebooleanfalseIf true, the Text will be in uppercase style.
strikeThroughbooleanfalseIf true, the Text will have text-transform: line-through.
weightenum"regular"The weight of the Text.
withBackgroundbooleanIf specified, Text will have background
marginstring \| number \| Object"0"Utility property to set margin.

enum

typealignassizeweight
"primary""start""p""small""normal"
"secondary""end""span""normal""medium"
"info""left""div""large""bold"
"success""center""extraLarge"
"warning""right"
"critical""justify"
"white"