FredrikOseberg / react-chatbot-kit

MIT License
301 stars 141 forks source link

Can we make the static text "Conversation with" in the header as optional? #7

Closed arjunbaiswar closed 3 years ago

arjunbaiswar commented 3 years ago

I checked within the module and the text is non-configurable i.e. static. I really liked the framework and it suits very well in the majority of use cases. One additional option I wished was if there could be a way to configure the whole header instead of just changing the Bot name. Thank you for your contribution!

image

FredrikOseberg commented 3 years ago

Totally agree with you here. I'll put that in the pipeline.

FredrikOseberg commented 3 years ago

8

1.0.7 Adds support for:

Examples:

// In config
customComponents: {
     header: () => <div>My new header</div>
}

// Props usage
<Chatbot headerText="New header text" placeholderText="new placeholder text" config={config} messageParser={messageParser} actionProvider={actionProvider} />
arjunbaiswar commented 3 years ago

Thanks a lot, @FredrikOseberg for your quick response & action.