@@ -19,7 +19,7 @@ type ButtonGroupProps = PropsOf<'div'> & {
1919 outline ?: boolean
2020}
2121
22- export const ButtonGroup : FunctionComponent < ButtonGroupProps > = ( { children, ...props } ) => {
22+ export const ButtonGroup : FunctionComponent < ButtonGroupProps > = ( { children, ...rest } ) => {
2323 const childrenToProcess = Array . isArray ( children ) ? [ ...children ] : [ children ]
2424
2525 const components : ComponentType [ ] = [ ]
@@ -30,7 +30,7 @@ export const ButtonGroup: FunctionComponent<ButtonGroupProps> = ({ children, ...
3030 foundComponentCallback : ( child , index ) => {
3131 const position = index === 0 ? 'start' : index === childrenToProcess . length - 1 ? 'end' : 'middle'
3232
33- if ( props . outline ) {
33+ if ( rest . outline ) {
3434 child . props [ 'outline' ] = true
3535 }
3636 // hack for qwik v1, check if this works in v2
@@ -45,7 +45,7 @@ export const ButtonGroup: FunctionComponent<ButtonGroupProps> = ({ children, ...
4545 } ,
4646 ] )
4747
48- return < InnerButtonGroup components = { components } { ...props } />
48+ return < InnerButtonGroup components = { components } { ...rest } />
4949}
5050
5151/**
@@ -56,9 +56,9 @@ type InnerButtonGroupProps = ButtonGroupProps & {
5656 components : ComponentType [ ]
5757}
5858
59- const InnerButtonGroup = component$ < InnerButtonGroupProps > ( ( { components, class : className , ...props } ) => {
59+ const InnerButtonGroup = component$ < InnerButtonGroupProps > ( ( { components, class : className , ...rest } ) => {
6060 return (
61- < div class = { twMerge ( 'inline-flex' , clsx ( className ) ) } role = "group" { ...props } >
61+ < div class = { twMerge ( 'inline-flex' , clsx ( className ) ) } role = "group" { ...rest } >
6262 { components . map ( ( comp ) => (
6363 < Fragment key = { comp . id } > { comp . button } </ Fragment >
6464 ) ) }
0 commit comments