Skip to content

Commit

Permalink
improve the label TS type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Nov 27, 2024
1 parent b9a85c0 commit c6b9c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/radio-control/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit c6b9c9e

Please sign in to comment.