Skip to main content

Function: EnumField()

EnumField<confAtom>(props): undefined | false | Element

Defined in: lib/forms/EnumField.tsx:139

A component that renders a group of enum options with selection functionality. Supports different display modes and integrates with form-atoms.

Type Parameters

confAtom

confAtom extends Atom<FieldConfig<number>, confAtom>

The type of the field configuration atom

Parameters

props

EnumFieldProps<confAtom>

The component props

Returns

undefined | false | Element

A view containing the enum options and label