Renderer
Renders BlockKit JSON structures into interactive UI components with support for dynamic content, replacements, and event handlingElement Type
blockkit/renderer
Usage
React Integration
JavaScript Integration
Configuration
Input Parameters
The following parameters can be passed in theconfig object:
Output
This element provides the following output interface:Events
This element emits the following events:Event Handling
Examples
Basic Example
Modal Example
API Reference
Element Methods
mount(selector)- Mount element to DOMopenModal(options)- Open element in modaldestroy()- Clean up and destroy elementpostMessage(data)- Send message to elementon(event, callback)- Listen for eventsoff(event, callback)- Remove event listener
Modal Options
width- Modal width (string or number)height- Modal height (string or number)maxWidth- Maximum width constraintmaxHeight- Maximum height constraintdismissOnDocumentClick- Close on backdrop clickescapeClose- Close on Escape keyzIndex- Modal z-index value
This documentation was auto-generated from the element schema.
