Version: 3.0.0-next.36

Text

Text is used to render text and paragraphs within an interface.

Implements#

Import#

import { Text } from 'native-base';

Examples#

ChangingFontSize#

Truncated#

Nested#

Overridden#

Props#

NameTypeDescriptionDefault
fontSize2xl, lg, md, sm, xl, xs, numberThe size of font.-
noOfLinesnumberUsed to truncate text at a specific number of lines-
isTruncatedbooleanIf true, it'll render an ellipsis when the text exceeds the width of the viewport or maxWidth set.-
boldbooleanMake the text bold.-
italicbooleanMake the text italic.-
underlinebooleanUnderline the text .-
strikeThroughbooleana horizontal line through its center.-
subbooleantext will have smaller font size.-
highlightbooleanHighlight the text with a yellow background.-