Skip to content

RadioGroup: add required prop #22766

@spmonahan

Description

@spmonahan

Problem

v9 RadioGroup does not have a required prop that is can pass down to its children. This means that for a required set of radio options uses must set the required prop on every Radio child of a RadioGroup. While not a blocker for release this is not the best user experience.

There is precedent for this as RadioGroup passes the disabled prop down to its children.

Appetite

This is a non-breaking change to add and there is a clear, simple workaround so this feature is not a high priority.

Solution

Pass the required prop down to RadioGroup children in the same way the disabled prop is passed.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions