Skip to main content

Text

The Text component is the simplest and easiest way to talk to the user.

Properties

PropertyTypeDescriptionRequiredDefault value
markdownBooleanEnable/disable markdown supportNotrue
childrenStringShow textYes-

Example

Text

<Text>Hello World!</Text>

Line break

To create a line break, you must use {'\n'}.

<Text>
First line {'\\n'}
Second line
</Text>

Markdown support

By default, the Text component supports markdown format for webchats. If you want to remove it, you must set the markdown property to false.

<Text markdown={false}>{formattedText}</Text>