Skip to Content
APIInterfacesInterface: AutocompleteOption<TValue>

Hero Hook Form API v2.15.0


Hero Hook Form API / AutocompleteOption

Interface: AutocompleteOption<TValue>

Defined in: fields/AutocompleteField.tsx:23 

Configuration for an autocomplete option.

Type Parameters

TValue

TValue extends string | number

The value type for the option

Properties

label

label: string

Defined in: fields/AutocompleteField.tsx:25 

Display label for the option


value

value: TValue

Defined in: fields/AutocompleteField.tsx:27 

Value of the option


description?

optional description: string

Defined in: fields/AutocompleteField.tsx:29 

Optional description text


disabled?

optional disabled: boolean

Defined in: fields/AutocompleteField.tsx:31 

Whether the option is disabled