From 42c36f2a7f04ee6bd8fce1ef623ef1a7424b3c7a Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Fri, 16 May 2025 08:24:53 +0100 Subject: [PATCH] Update types.ts Signed-off-by: Charles de Dreuille --- packages/canon/src/components/Button/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/canon/src/components/Button/types.ts b/packages/canon/src/components/Button/types.ts index 15feca581c..4ab62d5683 100644 --- a/packages/canon/src/components/Button/types.ts +++ b/packages/canon/src/components/Button/types.ts @@ -15,6 +15,7 @@ */ import type { ButtonOwnProps } from './Button.props'; +import { ReactElement } from 'react'; /** * Properties for {@link Button} @@ -43,10 +44,10 @@ export interface ButtonProps /** * Optional icon to display at the start of the button */ - iconStart?: React.ReactNode; + iconStart?: ReactElement; /** * Optional icon to display at the end of the button */ - iconEnd?: React.ReactNode; + iconEnd?: ReactElement; }