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

Add a required prop to FormControlLabel #11038

Closed
Floriferous opened this issue Apr 16, 2018 · 1 comment
Closed

Add a required prop to FormControlLabel #11038

Floriferous opened this issue Apr 16, 2018 · 1 comment
Labels
discussion status: waiting for author Issue with insufficient information

Comments

@Floriferous
Copy link
Contributor

I really like the required prop on FormLabel, as I used to have an ugly concatenation function doing it for me with the label I was passing to a TextField.

What I'm wondering is if there is currently a clean workaround to add the * to a FormControlLabel, so that it works like TextFields?

I'll keep concatenating stars to my labels in the meantime :)

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 16, 2018

@Floriferous Why don't you use the FormLabel directly like we do in https://v1.mui.com/demos/selection-controls/#radio-buttons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants