Skip to content

Do radio groups need an option selected by default? #4093

Answered by nkrantz
jess-watson asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jess-watson - PasteBot is correct. Radio Group doesn't need a pre-selected value. We have some more info about when to use a pre-selected value and the risks associated with that decision, as well as a Nielsen Norman article with additional context, on the Radio Group docs page.

Pre-selecting one of the Radio options is possible with both controlled and uncontrolled Radio Groups. The decision of whether to use controlled or uncontrolled will come down to the eng and their requirements (will pretty much always be controlled). Using a controlled Radio Group means there's an external state controlling the selected value rather than the component itself.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jess-watson
Comment options

Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants