PlainText
Useful when you want to show any text that should not have any formatting (is not Markdown). If you want markdown please use Text.
The plain text component has the following properties:
plainText
: the plain textplainTextSize
(optional): one ofS
,M
,L
, defaults toM
plainTextColor
(optional): one ofNORMAL
,MUTED
,SUCCESS
,WARNING
,ERROR
, defaults toNORMAL
For example:
[
{
"componentPlainText": {
"plainText": "Small text",
"plainTextSize": "S"
}
},
{
"componentPlainText": {
"plainText": "Medium text",
"plainTextSize": "M"
}
},
{
"componentPlainText": {
"plainText": "Large text",
"plainTextSize": "L"
}
},
{
"componentPlainText": {
"plainText": "Normal text",
"plainTextColor": "NORMAL"
}
},
{
"componentPlainText": {
"plainText": "Muted text",
"plainTextColor": "MUTED"
}
},
{
"componentPlainText": {
"plainText": "Success text",
"plainTextColor": "SUCCESS"
}
},
{
"componentPlainText": {
"plainText": "Warning text",
"plainTextColor": "WARNING"
}
},
{
"componentPlainText": {
"plainText": "Error text",
"plainTextColor": "ERROR"
}
}
]