From c6b9c9e6f3ea978180b8805e0bc3c88638683aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Su=C3=A1rez?= Date: Wed, 27 Nov 2024 17:19:24 +0000 Subject: [PATCH] improve the label TS type definition --- packages/components/src/radio-control/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/radio-control/types.ts b/packages/components/src/radio-control/types.ts index d42d9e58a0d21..be42504d91c0a 100644 --- a/packages/components/src/radio-control/types.ts +++ b/packages/components/src/radio-control/types.ts @@ -21,7 +21,7 @@ export type RadioControlProps = Pick< * * When the label is not a string, make sure that the element is accessibly labeled. */ - label: React.ReactNode; + label: string | React.ReactElement; /** * The internal value compared against select and passed to onChange */