green
green copied to clipboard
Button: Missing types on ButtonGroup like `className`
Bug already reported ?
- [X] I confirm that I have checked if the bug already has been reported
For which framework/library you are reporting the bug
React
Component name
ButtonGroup
Description
It seems like the regular HTMLElement props are not being forwarded to the underlying element for ButtonGroup.
I got the error following the docs for ButtonGroup

Steps To Reproduce
- Use TypeScript
- Add
className
to the ButtonGroup
Current Behaviour
Complains that className
is not a valid prop on ButtonGroup
Expected Behaviour
It should either:
- Accept
className
and forward them to the underlying element. - Accept a
buttonGroupSize
property that controls the size of the ButtonGroup.