Skip to Content
ContentAPIInterfacesInterface: FormConfig<TFieldValues>

Hero Hook Form API v2.5.1


Hero Hook Form API / FormConfig

Interface: FormConfig<TFieldValues>

Defined in: types.ts:255 

Type Parameters

TFieldValues

TFieldValues extends FieldValues

Properties

fields

fields: FormFieldConfig<TFieldValues>[]

Defined in: types.ts:256 


layout?

optional layout: "grid" | "horizontal" | "vertical" | "custom"

Defined in: types.ts:257 


columns?

optional columns: 1 | 2 | 3 | 4

Defined in: types.ts:258 


spacing?

optional spacing: "sm" | "md" | "lg" | "xl"

Defined in: types.ts:259 


title?

optional title: string

Defined in: types.ts:260 


subtitle?

optional subtitle: string

Defined in: types.ts:261 


showResetButton?

optional showResetButton: boolean

Defined in: types.ts:262 


resetButtonText?

optional resetButtonText: string

Defined in: types.ts:263 


submitButtonText?

optional submitButtonText: string

Defined in: types.ts:264 


className?

optional className: string

Defined in: types.ts:265 


defaultValues?

optional defaultValues: Partial<TFieldValues>

Defined in: types.ts:266