@botpress/messaging-components
v0.4.3
Published
A set of React Components to display Messaging content-types
Downloads
172
Keywords
Readme
Botpress Messaging Components
A set of React Components to display Messaging content-types
Usage
import React from 'react'
import ReactDOM from 'react-dom'
import ReactMessageRenderer, { defaultMessageConfig } from '@botpress/messaging-components'
const messageContent = {
type: 'text',
text: 'Hello World!'
}
ReactDOM.render(
<ReactMessageRenderer content={messageContent} config={defaultMessageConfig} />,
document.getElementById('root')
)
Development
Build:
$ yarn build
Run Tests:
$ yarn test
View and play with components in Storybook:
$ yarn storybook