SelectChoicesWidget
This is a React component

Source
import { SelectChoicesWidget } from "@prestojs/ui-antd";
SelectChoicesWidget(props)

See Select for Select props available

ParameterTypeDescription
*props.choices

The choices to render. This can be a Map of value to label or an array of 2-element arrays [value, label].

*props.input

Examples

Basic Usage

Any extra props are passed through to Select

Multiple selection

Pass mode="multiple" through to allow selection of multiple values. In this case the value will be an array.

Any extra props are passed through to the underlying component (eg. showSearch in the last example)