0.0.5 • Published 1 month ago

react-slack-webhook v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

📦 Installation

$ npm install react-slack-webhook
$ yarn add react-slack-webhook
$ pnpm add react-slack-webhook

🚀 Usage

import { Slack } from 'react-slack-webhook';
import { SLACK_WEBHOOK_URL } from '@/constants'

...
const onClick = () => {
  const slack = new Slack(SLACK_WEBHOOK_URL)

  return slack.send({
      text: 'hello, world',
      channel: '#channel',
      username: 'bot',
      icon_emoji: ':robot_face:',
  })
}
...

More Example

🎈 Props

KeyDefaultType
text"hello, world"string
channel"#general"string
username"bot"string
icon_emoji":robot_face:"string

📝 License

MIT. Made with ❤️ by cmg8431

0.0.5

1 month ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago