react-chatbot-kit
react-chatbot-kit copied to clipboard
Configuration customComponents missing payload
I'm trying to add Markdown support for both user and chatbot messages using this chatbot library with the react-markdown package, and from what I understand from the docs, I need to add code for the config.js
config object's customComponents
sub-object, specifically its botChatMessage
and userChatMessage
fields. I tried the following for the chatbot responses:
botChatMessage: (props) => <ReactMarkdownMessage {...props} />
but in my personal ReactMarkdownMessage.jsx
, I don't know which prop in its props contains the chatbot's message. This same issue occurs for user messages with the userChatMessage
config field.
This is similar to #176 but I think that issue is referring to adding the payload to a custom chatbot response message that can be used for specific, targeted chatbot response messages that the dev chooses. Please advise on if this currently works and I'm missing something, or the path forward.
react-chatbot-kit version: v2.1.0