Hero Hook Form API / StringFieldConfig
Interface: StringFieldConfig<TFieldValues>
Defined in: types.ts:62
Extends
BaseFormFieldConfig<TFieldValues>
Type Parameters
TFieldValues
TFieldValues extends FieldValues
Properties
name
name:
Path<TFieldValues>
Defined in: types.ts:41
Inherited from
label?
optionallabel:string
Defined in: types.ts:42
Inherited from
description?
optionaldescription:string
Defined in: types.ts:43
Inherited from
BaseFormFieldConfig.description
className?
optionalclassName:string
Defined in: types.ts:44
Inherited from
isDisabled?
optionalisDisabled:boolean
Defined in: types.ts:45
Inherited from
BaseFormFieldConfig.isDisabled
rules?
optionalrules:RegisterOptions<TFieldValues,Path<TFieldValues>>
Defined in: types.ts:46
Inherited from
condition()?
optionalcondition: (values) =>boolean
Defined in: types.ts:49
Parameters
values
Partial<TFieldValues>
Returns
boolean
Inherited from
dependsOn?
optionaldependsOn:Path<TFieldValues>
Defined in: types.ts:50
Inherited from
dependsOnValue?
optionaldependsOnValue:unknown
Defined in: types.ts:51
Inherited from
BaseFormFieldConfig.dependsOnValue
group?
optionalgroup:string
Defined in: types.ts:54
Inherited from
ariaLabel?
optionalariaLabel:string
Defined in: types.ts:57
Inherited from
ariaDescribedBy?
optionalariaDescribedBy:string
Defined in: types.ts:58
Inherited from
BaseFormFieldConfig.ariaDescribedBy
type
type:
"input"|"textarea"|"select"|"autocomplete"
Defined in: types.ts:64
defaultValue?
optionaldefaultValue:string
Defined in: types.ts:65
inputProps?
optionalinputProps:Omit<MergeWithAs<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,HTMLInputElement>,"ref">,Omit<Omit<any,"ref">,never>,InputProps,As<any>>,"label"|"value"|"isDisabled"|"isInvalid"|"errorMessage"|"onValueChange">
Defined in: types.ts:66
textareaProps?
optionaltextareaProps:Omit<MergeWithAs<Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>,HTMLTextAreaElement>,"ref">,Omit<Omit<any,"ref">,never>,TextAreaProps,As<any>>,"label"|"value"|"isDisabled"|"isInvalid"|"errorMessage"|"onValueChange">
Defined in: types.ts:75
selectProps?
optionalselectProps:Omit<SelectProps<object>,"label"|"isDisabled"|"isInvalid"|"errorMessage"|"onSelectionChange"|"selectedKeys">
Defined in: types.ts:84
autocompleteProps?
optionalautocompleteProps:Omit<AutocompleteProps<object>,"label"|"children"|"isDisabled"|"isInvalid"|"errorMessage"|"onSelectionChange"|"items"|"selectedKey"|"inputValue"|"onInputChange">
Defined in: types.ts:93
options?
optionaloptions:object[]
Defined in: types.ts:106
label
label:
string
value
value:
string|number