Your bookmarks

Text / React

The most basic component for rendering text blocks.

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.

Name Type Default Description
align enum "left" The align of the Text.
children React.Node The content of the Text.
dataTest string Optional prop for testing purposes.
element enum "p" The element used for the root node.
id string The id HTML attribute.
italic boolean false If true, the Text will be in italic style.
size enum "normal" The size of the Text.
spaceAfter enum Additional margin-bottom after component. See this docs
type enum "primary" The color type of the Text.
uppercase boolean false If true, the Text will be in uppercase style.
weight enum "regular" The weight of the Text.


type align element size weight
"primary" "left" "p" "small" "normal"
"secondary" "center" "span" "normal" "bold"
"info" "right" "div" "large"