The Text component should be used for all text on the page.
Props
Alignment
Use this to adjust the positioning of text within wrapper elements.
Start (default)
End
Center
Justify
Force left
Force right
Block vs inline
The Text component allows you to specify whether you want block
or inline
text.
Some content in a default block element. (default)
Inline text with the inline prop. More inline text.
Colors
You can specify which color you want for your text.
White
Gray
Dark Gray (default)
Blue
Red
Overflow
Gestalt provides utility options to deal with text overflow.
breakWord (default):
This is a long and Supercalifragilisticexpialidocious sentence. 次の単語グレートブリテンおよび北アイルランド連合王国で本当に大きな言葉 wwwwwwwwwwwwwwwwwwwwwwwwww'
normal:
This is a long and Supercalifragilisticexpialidocious sentence. 次の単語グレートブリテンおよび北アイルランド連合王国で本当に大きな言葉'
noWrap:
This is a long and Supercalifragilisticexpialidocious sentence.
lineClamp:
This is a long and Supercalifragilisticexpialidocious sentence.
Sizes
You can apply size
options to define the size of the text.
Small
こんにちは
Medium
こんにちは
Large (default size)
こんにちは
Styles
There are multiple styles, such as bold and italic, that we can attach to the Text component.
Bold
Italic
Underline