Home / DropdownField
This widget is a form widget which allows the user to select a value from a dropdown list.
DropdownField
is intrinsically a select
element and accepts all of its attributes.
import { DropdownField } from "react-simple-widgets/dist/dropdown-field";
<DropdownField name label helper leading trailing>
<option value="value1">Value 1</option>
<option value="value2">Value 2</option>
</DropdownField>;
-
name: string
The key of the widget's value in the Formik provider
-
label?: string
-
helper?: any
-
leading?: any
-
trailing?: any