Feature Request: Add Support for Mandatory Indicator (Red Dot) in ChoiceList Component Label #2403
Labels
design system
discussion required
Need to discuss on design, solution, APIe etc.
hacktoberfest
https://hacktoberfest.digitalocean.com
Summary
We would like to request a feature enhancement for the
<ChoiceList />
component. Currently, the component accepts atitle
prop, which is displayed as the label for the group of radio buttons. However, there is no built-in support for indicating that a field is mandatory, typically shown by a red dot next to the label (as is done for other mandatory fields in forms).Basic example
Expected Behavior:
Introduce a prop, such as
isRequired
, to the<ChoiceList />
component. WhenisRequired
is set totrue
, a red dot should appear next to the label to visually indicate that the radio button group is mandatory.The text was updated successfully, but these errors were encountered: