# Is there a way to style buttons of a ButtonGroup individually?

**URL:** <https://discourse.bokeh.org/t/is-there-a-way-to-style-buttons-of-a-buttongroup-individually/7614>\
**Category:** Community Support\
**Created:** [April 13, 2021, 1:17pm UTC](https://discourse.bokeh.org/t/is-there-a-way-to-style-buttons-of-a-buttongroup-individually/7614 "2021-04-13T13:17:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [April 13, 2021, 5:03pm UTC](https://discourse.bokeh.org/t/is-there-a-way-to-style-buttons-of-a-buttongroup-individually/7614/2 "2021-04-13T17:03:54Z")

</div>

Hi @Crysers, if you must cross-post questions in different forums (e.g. StackOverflow), we appreciate if you add cross-links everywhere, so that users finding any question can always get to an answer, regardless of where they find find the question.

There is no direct API for this, any changes would have to be made via CSS.\[1\] However, I don’t think there are any good selectors to target at present:

 ![Screen Shot 2021-04-13 at 9.59.12 AM](https://discourse-uploads.bokeh.org/original/2X/c/c50908cebbd5e145bdf5aa3b84e6ec23dfd274df.png)

There is a `css_classes` property that all widgets have that can be used to add arbitrary CSS classes, but in this case it would only apply to the top level `CheckboxButtonGroup` element, not the individual buttons.

It’s possible that the API could be expanded to support accepted CSS classes (or button types) per-button, but this would be new development. It would be appropriate to open a [GitHub Issue](https://github.com/bokeh/bokeh/issues) to propose it as a new feature.

In the mean time, the only workaround I can suggest is to add individual `Button` objects in a `row` and manage the exclusive on/off state directly.

* * *

1. Also probably possible to update from some JS code but that’s even more involved.

---

_[View the full topic](https://discourse.bokeh.org/t/is-there-a-way-to-style-buttons-of-a-buttongroup-individually/7614)._
