tjtanjin / react-chatbotify

A modern React library for creating flexible and extensible chatbots.
https://react-chatbotify.com
MIT License
167 stars 78 forks source link

[Task] Refactor header component to support custom buttons #30

Closed tjtanjin closed 5 months ago

tjtanjin commented 5 months ago

Description: Header components currently support the following buttons that are pre-determined and can be configured to be shown or hidden:

However, custom buttons are not allowed. It would be great to allow users to define their own button components for the header as well. Below I share a possible approach:

Feel free to take on a different approach if you have other ideas. Bear in mind that users need to be able to control the order of the buttons and that the configuration should be kept as simple as possible.

Related to #23

mahiuddin-habib commented 5 months ago

I am working on it.

tjtanjin commented 5 months ago

Resolved in #38