Skip to main content

Basic Example

Live Example

Example Code

Properties

string
required
Identifies this as a text blockMust be text
string
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-large
string
default:"start"
required
Text alignment within the blockAllowed values: start, center, end

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