diff --git a/components/lib/speeddial/SpeedDial.js b/components/lib/speeddial/SpeedDial.js
index 712d81bb36..ade06a17c9 100644
--- a/components/lib/speeddial/SpeedDial.js
+++ b/components/lib/speeddial/SpeedDial.js
@@ -4,6 +4,8 @@ import { useEventListener, useMountEffect, useUpdateEffect } from '../hooks/Hook
import { Ripple } from '../ripple/Ripple';
import { classNames, DomHandler, IconUtils, ObjectUtils } from '../utils/Utils';
import { SpeedDialBase } from './SpeedDialBase';
+import { PlusIcon } from '../icon/plus';
+import { MinusIcon } from '../icon/minus';
export const SpeedDial = React.memo(
React.forwardRef((inProps, ref) => {
@@ -219,21 +221,9 @@ export const SpeedDial = React.memo(
[`${props.showIcon}`]: (!visible && !!props.showIcon) || !props.hideIcon,
[`${props.hideIcon}`]: visible && !!props.hideIcon
});
- const icon = IconUtils.getJSXIcon(showIconVisible ? props.showIcon : hideIconVisible ? props.hideIcon : null, undefined, { props });
- const content = ;
-
- if (props.buttonTemplate) {
- const defaultContentOptions = {
- onClick,
- className,
- iconClassName,
- element: content,
- props,
- visible
- };
-
- return ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
- }
+ const icon = showIconVisible ? props.showIcon || : hideIconVisible ? props.hideIcon || : null;
+ const toggleIcon = IconUtils.getJSXIcon(icon, { className: iconClassName }, { props, visible });
+ const content = ;
return content;
};
diff --git a/components/lib/speeddial/SpeedDialBase.js b/components/lib/speeddial/SpeedDialBase.js
index e11f325b12..0a927f5b5e 100644
--- a/components/lib/speeddial/SpeedDialBase.js
+++ b/components/lib/speeddial/SpeedDialBase.js
@@ -21,7 +21,7 @@ export const SpeedDialBase = {
'aria-label': null,
maskStyle: null,
maskClassName: null,
- showIcon: 'pi pi-plus',
+ showIcon: null,
hideIcon: null,
rotateAnimation: true,
onVisibleChange: null,
diff --git a/components/lib/speeddial/speeddial.d.ts b/components/lib/speeddial/speeddial.d.ts
index e06ec2318e..b89e017bd7 100644
--- a/components/lib/speeddial/speeddial.d.ts
+++ b/components/lib/speeddial/speeddial.d.ts
@@ -112,13 +112,12 @@ export interface SpeedDialProps extends Omit;
+ showIcon?: IconType | undefined;
/**
* Hide icon of the button element.
*/
- hideIcon?: IconType;
+ hideIcon?: IconType | undefined;
/**
* Defined to rotate showIcon when hideIcon is not present.
* @defaultValue true