Skip to content

How to overwrite classes of a checked radio button in a button group #1582

Closed Answered by shinokada
dneukamm-netze-odr asked this question in Q&A
Discussion options

You must be logged in to vote

v1.0.7 can use color and checkedClass to style checked state.

<ButtonGroup>
    <RadioButton color="amber" outline checkedClass="outline-4 outline-amber-500" name="options" value="Option 1" bind:group={options}>Option 1</RadioButton>
    <RadioButton color="blue" outline checkedClass="outline-4 outline-blue-500" name="options" value="Option 2" bind:group={options}>Option 2</RadioButton>
</ButtonGroup>

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dneukamm-netze-odr
Comment options

Comment options

You must be logged in to vote
1 reply
@dneukamm-netze-odr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dneukamm-netze-odr
Comment options

You must be logged in to vote
0 replies
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