0.1.5 • Published 26 days ago

slack-blocks-to-jsx v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

Slack Blocks to JSX

Playground - https://slack-block-to-jsx-playground.vercel.app/

How to use

  1. Install the Library
  2. Import the CSS file in your entry point file import "slack-blocks-to-jsx/dist/style.css"
  3. Import the component and use it import { Message } from "slack-blocks-to-jsx"
  4. (optional) import the Block type to define the blocks for better type safety :)

    import type { Block } from "slack-blocks-to-jsx"

    const blocks: Block[] = [...your slack blocks]

    <Message time={new Date()} name="Your Company" logo="https://commons.wikimedia.org/wiki/File:Google_%22G%22_logo.svg" blocks={blocks} />

Note: This library is under development, if you need any functionality and it is not working/available yet in the library please raise an issue here. I will try to fix it asap :).

0.1.5

26 days ago

0.1.4

29 days ago

0.1.2

1 month ago

0.1.3

1 month ago

0.1.0

4 months ago

0.1.1

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago