Basic Example
Live Example
Example Code
Properties
string
required
Identifies this as a text blockMust be
textstring
required
The text content to display, may include replacement tokens like
object
required
Optional key-value pairs for text replacements
string
default:"span"
required
The HTML element type to render as (e.g., ‘span’, ‘div’, ‘p’)
string
default:"none"
required
Margin spacing around the text blockAllowed values:
none, auto, xxx-small, xx-small, x-small, small, medium, large, x-large, xx-largestring
default:"start"
required
Text alignment within the blockAllowed values:
start, center, endUsage 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
