diff --git a/package.json b/package.json index db1fde3f3..e1e1dc5b7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/molecules/Button/IconButton/IconButton.tsx b/src/molecules/Button/IconButton/IconButton.tsx index 55bde8007..971bed19f 100644 --- a/src/molecules/Button/IconButton/IconButton.tsx +++ b/src/molecules/Button/IconButton/IconButton.tsx @@ -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 { @@ -21,6 +21,7 @@ type Shape = 'circular' | 'square'; type BaseIconButtonProps = { icon: IconData; + iconProps?: Omit; shape?: Shape; children?: never; } & Omit; @@ -32,6 +33,7 @@ const BaseIconButton: FC = ({ loading = false, shape = 'circular', onClick, + iconProps, ...rest }) => { const tokens = TOKEN_MAPPINGS[color][variant]; @@ -62,7 +64,7 @@ const BaseIconButton: FC = ({ /> ) : ( - + )} );