Change the way it looks

The Messenger component with custom styles

You can fully customize the styles of the component in two ways:

Change the brand color

To change the brand color, you can use the brandColor prop. This will update the background color of the header and the color of the send button.

1 2 3 4 5 6 <Messenger publicKey='your-public-key' viewOptions={{ brandColor: '#ff0000' // also other types, such as rgba and hsl are supported }} />

Apply your CSS styles

I you want more control over the looks of the component, you can target the elements using their fixed class names and apply your own styling.

Every element has a set of classes separated with a lock icon: 🔒. Everything right of that icon is regenerated on each build so you should not use that, but everything on the left.

How can we help?

Send us a message and we'll get back to you as soon as possible.