Black Lives Matter. Please consider donating to Black Girls Code today.

How to add the Title attribute to RadioItems

Hello,

The texts of my radio items list are too long, so I limited the number of characters to show:

without-title

But I want my user to be able to see the whole text on mouse hover, like this:

The title attribute on the label HTML tag does this, but I can’t find anything in the documentation that could help me achieve this.

I believe the RadioItems don’t support the title attribute, is that right? If that’s the case, which alternative could I use?

My code:

dcc.RadioItems(
           id='radio-items',
           options=[{'label': data, 'value': data} for data in my_data['text']],
)

Thanks in advance!