1.0.5 • Published 4 years ago

@creadi/tchatche-react v1.0.5

Weekly downloads
6
License
GPL-2.0
Repository
github
Last release
4 years ago

tchatche-react

A react port of the tchatche conversational bot UI.

Install

# npm
npm install @creadi/tchatche-react

# yarn
yarn add @creadi/tchatche-react

Usage

import React from 'react'
import Tchatche from '@creadi/tchatche-react'
import { BotMessage } from '@creadi/tchatche-react/dist/types'

const messages: BotMessage[] = [
  // ...
]

const onEnd = (({ conversation, data }) => {
  // ...
})

export default <Tchatche messages={messages} onEnd={onEnd} pace={300} />

Find a more thorough explanation of the structure of BotMessage here

Release new version

  • A release on github will automatically trigger npm publishing. Make sure versions are in sync.
1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago

0.3.0

4 years ago