Home / MultiSelectField
This widget is a form widget which allows the user select multiple value(s) from a list of options using radio inputs.
MultiSelectField
is intrinsically a div
element and it accepts all of its attributes.
import { MultiSelectField } from "react-simple-widgets/dist/multi-select-field";
<MultiSelectField name label inline options onChange />;
-
name: string
The key of the widget's value in the Formik provider
-
label?: string
-
inline?: boolean
If set to
true
, the radio options will be laid out horizontally instead of vertically. -
options?: Array<[any, any]>
The list of options for the widget. Each option is a two-element array of
[label, value]
. -
onChange?: (value: any) => void
If specified, this function is called with the selected value.