[BUG] - ButtonGroup size prop incorrectly affects nested Buttons
Author: RezaNajafianCreated Dec 20, 2025Updated Apr 5, 2026
HeroUI Version
3.0.0-beta.3
Describe the bug
There is an issue with ButtonGroup when using the size prop.
When size is applied to , all nested
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Create a
ButtonGroupwithsize="sm". - Inside the
ButtonGroup, render a component that contains aButton(e.g. a Modal trigger). - Inside that component, render a
Button(such as a button inside a modal). - Open the modal.
Expected behavior
Buttons rendered inside nested components (like modals) should retain their own default size. Nested buttons should not inherit the small size unintentionally from the ButtonGroup.
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Edge
Source: heroui-inc/heroui