Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/amplify-component-lib",
"version": "13.1.1",
"version": "13.1.2",
"description": "Frontend Typescript components for the Amplify team",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/molecules/Button/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC, ReactNode } from 'react';

import { Icon } from '@equinor/eds-core-react';
import { Icon, IconProps } from '@equinor/eds-core-react';
import { CircularProgressProps } from '@equinor/eds-core-react';
import { IconData } from '@equinor/eds-icons';
import type {
Expand All @@ -21,6 +21,7 @@ type Shape = 'circular' | 'square';

type BaseIconButtonProps = {
icon: IconData;
iconProps?: Omit<IconProps, 'data'>;
shape?: Shape;
children?: never;
} & Omit<CommonButtonProps, 'children'>;
Expand All @@ -32,6 +33,7 @@ const BaseIconButton: FC<BaseIconButtonProps> = ({
loading = false,
shape = 'circular',
onClick,
iconProps,
...rest
}) => {
const tokens = TOKEN_MAPPINGS[color][variant];
Expand Down Expand Up @@ -62,7 +64,7 @@ const BaseIconButton: FC<BaseIconButtonProps> = ({
/>
</>
) : (
<Icon data={icon} />
<Icon data={icon} {...iconProps} />
Comment thread
arkadiy93 marked this conversation as resolved.
)}
</IconButtonWrapper>
);
Expand Down
Loading