We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c3979 commit a4a606eCopy full SHA for a4a606e
src/components/experimental/IconButton/IconButton.tsx
@@ -109,7 +109,8 @@ export const IconButton = ({
109
isLoading = false,
110
Icon,
111
variant = 'standard',
112
- onPress
+ onPress,
113
+ ...restProps
114
}: IconButtonProps): ReactElement => {
115
const Container = variant === 'standard' ? StandardIconContainer : TonalIconContainer;
116
@@ -120,6 +121,7 @@ export const IconButton = ({
120
121
isDisabled={isDisabled}
122
isActive={isActive}
123
isPending={isLoading}
124
+ {...restProps}
125
>
126
{isLoading ? (
127
<InlineSpinner data-testid="iconbutton-spinner" color={getSemanticValue('on-surface')} />
0 commit comments