Text

A component for displaying and styling text content in email templates. Provides comprehensive typography controls and ensures consistent text rendering across email clients.

<Text color="#333333" fontSize="16px" fontWeight="bold" align="center"
  >Important message</Text
>
PropTypeDefaultUnitDescription
alignleft|right|center|justifyleft-Text alignment
classstring--CSS class name(s) for custom styling*
colorstring#000000CSS color valueText color
containerBackgroundColorstring-CSS color valueBackground color of the text container
fontFamilystringUbuntu, Helvetica, Arial, sans-serif-Font family for the text
fontSizestring13pxpxFont size
fontStylenormal|italic|oblique--Font style
fontWeightnumber|normal|bold--Font weight
heightstring-pxFixed height
letterSpacingstring-px/emLetter spacing
lineHeightstring1px/noneLine height
paddingstring10px 25pxpxPadding shorthand for all sides
paddingBottomstring-pxBottom padding
paddingLeftstring-pxLeft padding
paddingRightstring-pxRight padding
paddingTopstring-pxTop padding
textDecorationunderline|overline|line-through|none--Text decoration style
textTransformuppercase|lowercase|capitalize--Text transformation

* CSS class name(s) that correspond to styles defined in the Head component's styles prop.