interface FormInputConfig<FormInputValue> {
    name: string;
    value: FormInputValue;
    required: boolean;
    disabled: boolean;
    readonly: boolean;
    dataset: Record<string, string>;
    placeholder: string;
}

Type Parameters

  • FormInputValue

Properties

name: string

The name of the form element

The current value of the form element

required: boolean

Is the field required?

disabled: boolean

Is the field disabled?

readonly: boolean

Is the field readonly?

dataset: Record<string, string>

Additional dataset attributes to assign to the input

placeholder: string

A placeholder value, if supported by the element type