Module: components/FormikSelectField

Formik select input field. Uses material ui. Used inside Formik and Form that are imported from 'formik'.

Parameters:
Name Type Description
props Object
Properties
Name Type Description
label string

Field label

name string

Field name

options Array.<Object>

All available fields shown in dropdown menu

Properties
Name Type Attributes Description
value string | number

Option value (value that is sent to API)

label string <optional>

Option label (shown to user)

Source:
Example
<Formik>
 <Form>
   <FormikSelectField
     label="Role"
     name="role"
     options={[{ value: 'worker', label: 'Worker' }, ... ]}
   />
 </Form>
</Formik>