hig
hig copied to clipboard
Enable passing arbitrary props to all components
Currently Typography
and Button
seem to be able to pass all down. Some of the other Inpust & Controls can do most, but className
seems to be an issue, and that probably needs to be fixed.
For components that are a combination of other elements I think we should pass the className
to the wrapper.
For components that are a combination of other elements I think we should pass the className to the wrapper.
@wmui51
Some components, their renders just return a HTML element (div, span, etc.) as this component's root wrapper, and currently we do not pass {...otherProps}
to this root wrapper, do you think we should pass {...otherProps}
as well as className
?
I think passing {...otherProps}
might be a good idea.