Different colour for react-table headers

Having trouble with styling table created by react-table library.

Please find the design below.
enter image description here

Table is created the way it is shown in documentation. Is it possible to colour headers as shown in design?

Thank you in advance

Here is the code snippet from documentation
enter image description here

To create headers I need to create an array. So i cant change style for a specific header (actually I can provide element to render, but it will be rendered inside the element)

>Solution :

Check this, there are class names added to the data where the data should be styled differently. I think that’s what you need.

Leave a Reply