block-kit

PlaygroundEdit Block Kit JSON and see it the way Slack renders it. No sign-in. Not affiliated with Slack.

{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "You have a new request:\n*<https://example.com|Fred Enriquez - New device request>*"
      }
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Type:*\nComputer (laptop)"
        },
        {
          "type": "mrkdwn",
          "text": "*When:*\nSubmitted Aut 10"
        },
        {
          "type": "mrkdwn",
          "text": "*Last Update:*\nMar 10, 2015 (3 years, 5 months)"
        },
        {
          "type": "mrkdwn",
          "text": "*Reason:*\nAll vowel keys aren't working."
        },
        {
          "type": "mrkdwn",
          "text": "*Specs:*\n\"Cheetah Pro 15\" - Fast, really fast\""
        }
      ]
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "emoji": true,
            "text": "Approve"
          },
          "style": "primary",
          "value": "click_me_123"
        },
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "emoji": true,
            "text": "Deny"
          },
          "style": "danger",
          "value": "click_me_123"
        }
      ]
    }
  ]
}
Block Kit PreviewAPP
You have a new request:
Fred Enriquez - New device request
Type:
Computer (laptop)
When:
Submitted Aut 10
Last Update:
Mar 10, 2015 (3 years, 5 months)
Reason:
All vowel keys aren't working.
Specs:
"Cheetah Pro 15" - Fast, really fast"

Payload

Click a button, pick an option or submit the modal to see the payload Slack would send your app.

Block Kit Playground

Paste or edit Slack Block Kit JSON and see it rendered as a message, modal or Home tab, the way Slack draws it. You don't need to sign in to Slack or install anything.

The editor takes the JSON your app sends to chat.postMessage, views.open or views.publish: an object with blocks, a bare array of blocks, or a whole view. The preview follows as you type, and while the JSON doesn't parse it says what's wrong and keeps the last version that did.

Buttons, menus, date pickers and inputs work. Click one and the log under the preview shows the block_actions payload Slack would send your app, with its action_id, block_id and value, so you can check them before you write the handler.

The address keeps your JSON in Block Kit Builder's URL format, so a link copied from one opens in the other. The JSON stays in the link; nothing is saved on a server.

The playground is built on @nkootstra/block-kit, an open-source React package that renders Block Kit the way Slack does and is compared, pixel by pixel, against Slack's own rendering. Use it to show the same messages in your own product.

MIT licensed. Not affiliated with Slack. Slack and Block Kit are trademarks of Slack Technologies, LLC.