From 86d8c735ba6ffd26c88b9c160f1df165a2ff2875 Mon Sep 17 00:00:00 2001 From: Kathy Wang <139192353+KathyWang0208@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:38:17 +0800 Subject: [PATCH] Update BpkSaveButton to support extension props (#3617) Co-authored-by: Kathy Wang --- packages/bpk-component-card-button/src/BpkSaveButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bpk-component-card-button/src/BpkSaveButton.tsx b/packages/bpk-component-card-button/src/BpkSaveButton.tsx index e8eabe9e84..37a58c8851 100644 --- a/packages/bpk-component-card-button/src/BpkSaveButton.tsx +++ b/packages/bpk-component-card-button/src/BpkSaveButton.tsx @@ -68,6 +68,7 @@ const BpkSaveButton = ({ onCheckedChange, size = SIZE_TYPES.default, style = STYLE_TYPES.default, + ...rest }: Props) => { const [shouldPlayAnim, setPlayAnim] = useState(false); const smallSize = size === SIZE_TYPES.small; @@ -91,6 +92,7 @@ const BpkSaveButton = ({ setPlayAnim(true); } }} + {...rest} >