File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
frontend/src/components/form Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ interface TextInputProps<TFieldValues extends FieldValues> {
12
12
label : string ;
13
13
name : FieldPath < TFieldValues > ;
14
14
placeholder : string ;
15
+ className ?: string ;
15
16
}
16
17
17
18
export function TextInput < TFieldValues extends FieldValues > ( {
18
19
label,
19
20
name,
20
21
placeholder,
22
+ className,
21
23
} : TextInputProps < TFieldValues > ) {
22
24
const form = useFormContext ( ) ;
23
25
@@ -29,7 +31,7 @@ export function TextInput<TFieldValues extends FieldValues>({
29
31
< FormItem className = "flex-1" >
30
32
< FormLabel > { label } </ FormLabel >
31
33
< FormControl >
32
- < Input placeholder = { placeholder } { ...field } />
34
+ < Input className = { className } placeholder = { placeholder } { ...field } />
33
35
</ FormControl >
34
36
< FormMessage />
35
37
</ FormItem >
You can’t perform that action at this time.
0 commit comments