Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Support for Mandatory Indicator (Red Dot) in ChoiceList Component Label #2403

Open
abhishekt126 opened this issue Oct 23, 2024 · 0 comments
Labels
design system hacktoberfest https://hacktoberfest.digitalocean.com

Comments

@abhishekt126
Copy link

Summary

We would like to request a feature enhancement for the <ChoiceList /> component. Currently, the component accepts a title 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. When isRequired is set to true, a red dot should appear next to the label to visually indicate that the radio button group is mandatory.

@anuradha9712 anuradha9712 added hacktoberfest https://hacktoberfest.digitalocean.com design system labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design system hacktoberfest https://hacktoberfest.digitalocean.com
Projects
None yet
Development

No branches or pull requests

2 participants