Skip to content

Commit 3f98b38

Browse files
authored
feat: Allow ReactNode as label prop in TextField component
2 parents 23ca528 + e93dbf3 commit 3f98b38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/src/ui/text-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const FieldSuffix = ({
5454
export interface TextInputProps extends Omit<InputProps, 'prefix' | 'suffix'> {
5555
control?: Control<FieldValues>;
5656
name: FieldPath<FieldValues>;
57-
label?: string;
57+
label?: string | React.ReactNode;
5858
description?: string;
5959
components?: Partial<FieldComponents> & {
6060
Input?: React.ComponentType<InputProps & React.RefAttributes<HTMLInputElement>>;

0 commit comments

Comments
 (0)