@avkad17/slack-block-builder
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@avkad17/slack-block-builder

Getting started

This is a simple package that can be used to create the blocks and views required to interact with users on any Slack surface. This is based on Slack's own Block Kit Builder.

Installation

 npm install --save @avkad17/slack-block-builder

Usage

import SlackBlockBuilder from '@avkad17/slack-block-builder';

const blocks = SlackBlockBuilder.blocks.section(
  'Hello world!',
  'hello_block',
  undefined,
  SlackBlockBuilder.elements.button('Click me!', 'click', 'something', undefined, 'primary'),
);

License

@avkad17/slack-block-builder is licensed under the MIT License.

/@avkad17/slack-block-builder/

    Package Sidebar

    Install

    npm i @avkad17/slack-block-builder

    Weekly Downloads

    2

    Version

    0.0.6

    License

    ISC

    Unpacked Size

    84.1 kB

    Total Files

    92

    Last publish

    Collaborators

    • avkad17