Skip to content

Commit a4a606e

Browse files
authored
fix: pass rest props to the icon button container (#496)
1 parent 35c3979 commit a4a606e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/experimental/IconButton/IconButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ export const IconButton = ({
109109
isLoading = false,
110110
Icon,
111111
variant = 'standard',
112-
onPress
112+
onPress,
113+
...restProps
113114
}: IconButtonProps): ReactElement => {
114115
const Container = variant === 'standard' ? StandardIconContainer : TonalIconContainer;
115116

@@ -120,6 +121,7 @@ export const IconButton = ({
120121
isDisabled={isDisabled}
121122
isActive={isActive}
122123
isPending={isLoading}
124+
{...restProps}
123125
>
124126
{isLoading ? (
125127
<InlineSpinner data-testid="iconbutton-spinner" color={getSemanticValue('on-surface')} />

0 commit comments

Comments
 (0)