Text component props
Name | Type | Description |
---|---|---|
color | MantineColor | @deprecated Use c prop instead |
gradient | MantineGradient | Gradient configuration, ignored when variant is not gradient , theme.defaultGradient by default |
inherit | boolean | Determines whether font properties should be inherited from the parent, false by default |
inline | boolean | Sets line-height to 1 for centering, false by default |
lineClamp | number | Number of lines after which Text will be truncated |
size | MantineSize | (string & {}) | Controls font-size and line-height , 'md' by default |
span | boolean | Shorthand for component="span" , false by default, default root element is p |
truncate | TextTruncate | Side on which Text must be truncated, if true , text is truncated from the start |
Welcome to Mantine, React components library that you always wished for
Build fully functional accessible web applications faster than ever