Skip to content

Latest commit

 

History

History
executable file
·
35 lines (19 loc) · 989 Bytes

multi-select-field-usage.md

File metadata and controls

executable file
·
35 lines (19 loc) · 989 Bytes

Home / MultiSelectField

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.

Usage

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

    See FieldDecoration docs

  • 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.