tjtanjin / react-chatbotify

A modern React library for creating a flexible and extensible chatbot.
https://react-chatbotify.tjtanjin.com/
MIT License
103 stars 49 forks source link

feat: allow custom buttons to be rendered in header #38

Closed mahiuddinhabib closed 2 months ago

mahiuddinhabib commented 3 months ago

Description

Similar to the work done by @mushroomgenie on the footer component PR #33, this pull request introduces a new option called buttons to the header options. By default, the header now renders Notification, Audio, and Close buttons. Users can now customize the header buttons by passing their own components as an array to the buttons prop.

Screenshot 2024-04-16 152343 Screenshot 2024-04-16 152616 Screenshot 2024-04-16 152519

Closes #30

What change does this PR introduce?

Please select the relevant option(s).

What is the proposed approach?

Please give a short overview/explanation on the approach taken to resolve the issue(s).

Checklist: