diff --git a/.changeset/long-buttons-burn.md b/.changeset/long-buttons-burn.md new file mode 100644 index 0000000000..9fe0f70a33 --- /dev/null +++ b/.changeset/long-buttons-burn.md @@ -0,0 +1,5 @@ +--- +'@sumup/circuit-ui': patch +--- + +Allowed the loading state for the `IconButton` component. Pass an `isLoading` prop with an accessible `loadingLabel` label. diff --git a/packages/circuit-ui/components/IconButton/IconButton.tsx b/packages/circuit-ui/components/IconButton/IconButton.tsx index 883e9d284f..879e424289 100644 --- a/packages/circuit-ui/components/IconButton/IconButton.tsx +++ b/packages/circuit-ui/components/IconButton/IconButton.tsx @@ -32,8 +32,6 @@ export interface IconButtonProps extends Omit { * on hover, and accessible to screen readers. */ label: string; - isLoading?: never; - loadingLabel?: never; } const Label = styled('span')(hideVisually);