Skip to main content
Renders the provided text, which can optionally overflow onto multiple lines. Similar to a <p> element in HTML. Text components typically have a style and layout prop provided to define how the text looks and where it should be placed within the parent layout container.
VCS doesn’t have a style inheritance cascade like in CSS, so if you don’t pass the style prop, your text will get global default styling.

Props

Properties specific to the <Text> component. Properties available to all VCS components, including this one.

style prop

The style prop accepts an object that can have the following values set.
Valid color format options:
  • Hex color codes
  • RGB or RGBA syntax
  • Standard CSS color names (e.g. ‘blue’)