Basic Example

{
  "type": "alert",
  "severity": "info",
  "text": "Sample alertblock content"
}

Live Example

Example Code
[
  {
    "type": "alert",
    "severity": "success",
    "text": "Your changes have been saved successfully!"
  },
  {
    "type": "alert",
    "severity": "warning",
    "text": "Please review the following information carefully."
  },
  {
    "type": "alert",
    "severity": "error",
    "text": "An error occurred while processing your request."
  }
]

Properties

type
string
required
Identifies this as an alert blockMust be alert
severity
string
default:"info"
required
The severity level of the alertAllowed values: info, success, warning, error
text
string
required
The text content of the alert message

Usage Notes

  • This element is part of the BlockKit system for building dynamic user interfaces
  • All properties marked as (required) must be included in your JSON structure
  • Optional properties can be omitted and will use their default values when applicable