PlainText

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.

Example link button

The plain text component has the following properties:

  • plainText: the plain text
  • plainTextSize (optional): one of S, M, L, defaults to M
  • plainTextColor (optional): one of NORMAL, MUTED, SUCCESS, WARNING, ERROR, defaults to NORMAL

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"
    }
  }
]