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

Possibility to add a custom input to the RadioButtonGroup #328

Open
2 tasks done
guynikan opened this issue Oct 28, 2024 · 1 comment
Open
2 tasks done

Possibility to add a custom input to the RadioButtonGroup #328

guynikan opened this issue Oct 28, 2024 · 1 comment

Comments

@guynikan
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

According to the MUI Material documentation, to customize the radio input, I need to pass the custom component to the "control" property in "FormControlLabel."

Upon reviewing the code, it appears that even when passing this property within "labelProps," it gets overwritten, as shown in the snippet below:

image

My request would be to add a way (perhaps simply spreading labelProps after the default properties) to allow a custom input component to be added.

Examples 🌈

No response

@dohomi
Copy link
Owner

dohomi commented Oct 28, 2024

Feel free to provide a PR with your proposed changes. As you must have access to error and value state you can't simply provide a component to the control. It would rather be easier to provide the RadioProps and spread these to the <Radio> component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants