FredrikOseberg / react-chatbot-kit

MIT License
330 stars 159 forks source link

Replace message input box and send button with custom component. #169

Open SazzadSowmik opened 11 months ago

SazzadSowmik commented 11 months ago

I'm using this super cool chatbot. But I couldn't found any custom component feature for message box and send button. Help me if there is a way to do so. If it's there, I convert the input box into different type, like, textarea, email, image etc.

There might me different solution for my use case. Please have a look into my usecase.

egioia-blend commented 10 months ago

Im looking for exact same!

harshdetroja commented 8 months ago

I have added a mic button beside my send button in the input container for audio input, and it is working. Try to make changes using getElementsByClassName().

JerryO3 commented 4 months ago

Also ran into this issue and hope that it can be fixed in future!

In the meantime a temporary fix I used is to clone the repo, make the required changes and then create a local npm package for my own use:

To create the local package:

  1. nvm use 16..0
  2. npm install --global yarn
  3. export PATH="$PATH:$(yarn global bin)"
  4. npm pack

To use the local package:

  1. npm install path/to/package.tgz

Hope this helps somebody!