Renders text blocks in styles to fit the purpose.


To implement Text component into your project you’ll need to add the import:

import Text from "@kiwicom/orbit-components/lib/Text";

After adding import into your project you can use it simply like:

<Text>Hello World!</Text>


Table below contains all types of the props available in the Text component.

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.