Skip to main content

Basic Example

Live Example

Example Code

Properties

string
required
Identifies this as a heading blockMust be heading
integer
required
The heading level (1-6)Allowed values: 1, 2, 3, 4, 5, 6
string
required
The text content of the heading
string
required
Optional margin setting for the heading
string
required
Text alignment for the headingAllowed values: left, center, right

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