@@ -14,13 +14,13 @@ import {ButtonContext, LinkButtonContext} from './Button';
14
14
import { ContextValue , Provider , SlotProps } from 'react-aria-components' ;
15
15
import { createContext , forwardRef , ReactNode , useCallback , useRef } from 'react' ;
16
16
import { DOMProps , DOMRef , DOMRefValue } from '@react-types/shared' ;
17
+ import { filterDOMProps , useLayoutEffect , useValueEffect } from '@react-aria/utils' ;
17
18
import { getAllowedOverrides , StyleProps } from './style-utils' with { type : 'macro' } ;
18
19
import { style } from '../style' with { type : 'macro' } ;
19
20
import {
20
21
useDOMRef ,
21
22
useResizeObserver
22
23
} from '@react-spectrum/utils' ;
23
- import { useLayoutEffect , useValueEffect } from '@react-aria/utils' ;
24
24
import { useSpectrumContextProps } from './useSpectrumContextProps' ;
25
25
26
26
interface ButtonGroupStyleProps {
@@ -112,7 +112,8 @@ export const ButtonGroup = forwardRef(function ButtonGroup(props: ButtonGroupPro
112
112
orientation = 'horizontal' ,
113
113
align = 'start' ,
114
114
children,
115
- isDisabled
115
+ isDisabled,
116
+ ...otherProps
116
117
} = props ;
117
118
118
119
let [ hasOverflow , setHasOverflow ] = useValueEffect ( false ) ;
@@ -165,6 +166,7 @@ export const ButtonGroup = forwardRef(function ButtonGroup(props: ButtonGroupPro
165
166
let context = { styles : style ( { flexShrink : 0 } ) , size, isDisabled} ;
166
167
return (
167
168
< div
169
+ { ...filterDOMProps ( otherProps ) }
168
170
ref = { domRef }
169
171
style = { props . UNSAFE_style }
170
172
className = { ( props . UNSAFE_className || '' ) + buttongroup ( {
0 commit comments