Components
API Reference

API Reference

Text component

<Text variant="context">Hello world</Text>

Parameters

props

  • Type: { as: div | label | li | p | span; variant: body | display1 | display2 | display3 | display4 | context | action | emphasis | caption1 | caption2; }

Props

TextProps

  • Type: @vtex/shoreline-components.Span | @vtex/shoreline-components.Label | @vtex/shoreline-components.Paragraph | @vtex/shoreline-components.Div | @vtex/shoreline-components.Li

View source (opens in a new tab)