RadioItems side by side (aligned horizontally)

    dbc.RadioItems(
        id="r_ind_tipo_graf",
        options=[{'label':'Barras','value':1},{'label':'Linhas','value':2}],
        value='Barras',
        className='input',
        inline=True
    )

Hi! Radio button options are showing vertically and setting “inline=True” didn’t work to align horitonzally. What’s wrong?

image

HI @pedromsouza ,

did you include the dbc.themes as external stylesheet? Like this:

app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])

1 Like

It worked. Thanks!

1 Like