tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

Why does RadioGroup component only accepts Radio as children ? #425

Open JoaoMosmann opened 7 years ago

JoaoMosmann commented 7 years ago

I understand that is good to ensure that the RadioGroup only have Radios as children.

However, what if I want to have other inputs between the Radios, like a datepicker, a combobox, or a entire form.

tleunen commented 7 years ago

Currently, it will fail, because the RadioGroup is attaching custom props to every child. This would need to be redesigned to allow other child types.