Skip to content

Commit d785569

Browse files
committed
Change type of text to react node in FormGroup / InputLabel / InputLegend"
1 parent 1e53d75 commit d785569

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/FormGroup/FormGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export type FormGroupProps = {
5252
id?: string;
5353
inline?: boolean;
5454
inputKey?: string;
55-
label?: string;
55+
label?: React.ReactNode;
5656
labelClassName?: string;
5757
labelHelperText?: string;
5858
labelHtmlFor?: string;

src/InputLabel/InputLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type InputLabelProps = {
1212
labelHelperText?: React.ReactNode;
1313
labelHtmlFor?: string;
1414
required?: boolean;
15-
text: string;
15+
text: React.ReactNode;
1616
tooltipText?: React.ReactNode;
1717
} & LabelProps;
1818

src/InputLegend/InputLegend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type InputLegendProps = {
1414
className?: string;
1515
labelHelperText?: React.ReactNode;
1616
required?: boolean;
17-
text: string;
17+
text: React.ReactNode;
1818
tooltipText?: React.ReactNode;
1919
} & LegendProps;
2020

0 commit comments

Comments
 (0)