green icon indicating copy to clipboard operation
green copied to clipboard

Button: Missing types on ButtonGroup like `className`

Open syradar opened this issue 1 year ago • 0 comments

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.

image

I got the error following the docs for ButtonGroup

image

Steps To Reproduce

  1. Use TypeScript
  2. 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.

syradar avatar Apr 01 '23 20:04 syradar