.
This commit is contained in:
parent
7c2a0b8a51
commit
a7a4768a0f
@ -6,7 +6,7 @@ import { type FieldPath, type FieldValues, useFormContext } from "react-hook-for
|
|||||||
import { FormFieldLabel } from "./form-field-label.tsx";
|
import { FormFieldLabel } from "./form-field-label.tsx";
|
||||||
import type { NativeTextareaProps } from "./types.ts";
|
import type { NativeTextareaProps } from "./types.ts";
|
||||||
|
|
||||||
type TextAreaFieldProps<TFormValues extends FieldValues> = NativeTextareaProps & {
|
type TextAreaFieldProps<TFormValues extends FieldValues> = Omit<NativeTextareaProps, "name"> & {
|
||||||
name: FieldPath<TFormValues>;
|
name: FieldPath<TFormValues>;
|
||||||
|
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import { FormFieldLabel } from "./form-field-label.tsx";
|
|||||||
import { type TextFieldTypePreset, getInputPresetProps } from "./text-field-presets.tsx";
|
import { type TextFieldTypePreset, getInputPresetProps } from "./text-field-presets.tsx";
|
||||||
import type { NativeInputProps } from "./types.ts";
|
import type { NativeInputProps } from "./types.ts";
|
||||||
|
|
||||||
type TextFieldProps<TFormValues extends FieldValues> = NativeInputProps & {
|
type TextFieldProps<TFormValues extends FieldValues> = Omit<NativeInputProps, "name"> & {
|
||||||
name: FieldPath<TFormValues>;
|
name: FieldPath<TFormValues>;
|
||||||
|
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user