Text

Display text

Import

Text component props

NameTypeDescription
colorMantineColor@deprecated Use c prop instead
gradientMantineGradientGradient configuration, ignored when variant is not gradient, theme.defaultGradient by default
inheritbooleanDetermines whether font properties should be inherited from the parent, false by default
inlinebooleanSets line-height to 1 for centering, false by default
lineClampnumberNumber of lines after which Text will be truncated
sizeMantineSize | (string & {})Controls font-size and line-height, 'md' by default
spanbooleanShorthand for component="span", false by default, default root element is p
truncateTextTruncateSide on which Text must be truncated, if true, text is truncated from the start