Skip to main content

Function: SwitchField()

SwitchField<confAtom>(props): false | Element

Defined in: lib/forms/SwitchField.tsx:33

A form field component that renders a switch input. The switch state is controlled by the field configuration atom.

Type Parameters

confAtom

confAtom extends Atom<FieldConfig<boolean>, confAtom>

Parameters

props

SwitchFieldProps<confAtom>

The component props

Returns

false | Element

A switch field component with label