Skip to content

How to align radio options vertically? #735

Answered by richard-to
eisthf asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't verified, but I think you can do something like this (i.e. add style=me.Style(display="flex", flex_direction="column")):

   me.radio(
        options=[
            me.RadioOption(label=value, value=value)
            for value in values
        ],
        style=me.Style(display="flex", flex_direction="column"),
        on_change=on_change_radio,
    )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by richard-to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants