Skip to Content
APIInterfacesInterface: FieldBaseProps<TFieldValues, TValue>

Hero Hook Form API v2.15.0


Hero Hook Form API / FieldBaseProps

Interface: FieldBaseProps<TFieldValues, TValue>

Defined in: types.ts:113 

Type Parameters

TFieldValues

TFieldValues extends FieldValues

TValue

TValue

Properties

name

name: Path<TFieldValues>

Defined in: types.ts:118 


label?

optional label: string

Defined in: types.ts:119 


description?

optional description: string

Defined in: types.ts:120 


className?

optional className: string

Defined in: types.ts:121 


rules?

optional rules: RegisterOptions<TFieldValues, Path<TFieldValues>>

Defined in: types.ts:123 

Additional validation rules


defaultValue?

optional defaultValue: TValue

Defined in: types.ts:125 

Provide a default value when the form hasn’t set one yet.


isDisabled?

optional isDisabled: boolean

Defined in: types.ts:127 

Disable the input