@rasahq/chat-widget-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

Rasa Chat Widget React Library

The Rasa Chat Widget React Library enables seamless integration of Rasa-powered chatbot into React applications using web components. This wrapper offers several advantages over traditional web components:

  • Proper Event Handling: Custom events propagate correctly throughout the React render tree.
  • Type Safety: Non-string and non-numeric properties and attributes bind accurately to the web component.
  • Ease of Use: Utilizes React’s event handling and ensures type safety for a streamlined development experience.

Here’s an example of how to use it:

<RasaChatbotWidget
  serverUrl="http://example.com"
  onChatWidgetOpened={console.log}
/>

For a complete example, refer to examples/react

Readme

Keywords

none

Package Sidebar

Install

npm i @rasahq/chat-widget-react

Weekly Downloads

49

Version

0.1.10

License

ISC

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • m-vdb
  • tbocklisch
  • outfield-unship-thematic-adds
  • rasa-jmac
  • maggo
  • anthonydeguzman