Skip to content

Commit

Permalink
Fix radio button label type
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash committed Dec 22, 2023
1 parent effb25e commit 440011e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/RadioButton/RadioButton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
FocusEventHandler,
FunctionComponent,
InputHTMLAttributes,
ReactNode,
} from 'react';

export interface RadioButtonProps extends AriaAttributes, InputHTMLAttributes<HTMLInputElement> {
Expand All @@ -27,7 +28,7 @@ export interface RadioButtonProps extends AriaAttributes, InputHTMLAttributes<HT
/** If the radio button should be rendered inline */
inline?: boolean;
/** The radio button's label */
label?: string;
label?: ReactNode;
/** Add a class to the label */
labelClass?: string;
/** Add style to the label */
Expand Down

0 comments on commit 440011e

Please sign in to comment.