⚠️ @prestojs/ui-antd is a legacy package

It is maintained for existing projects but should not be used for new projects. New projects should use @alliancesoftware/ui instead — see the @alliancesoftware/ui component library.

ChoicesWidget

Source
import { ChoicesWidget } from "@prestojs/ui-antd";
ChoicesWidget<ValueType>(props)
Source

Component Props:

PropTypeDescription
*
props
An object with the properties below
props.asyncChoicesAsyncChoicesInterface
*props.choices|[T, string][]||[ValueType, string][]
*props.inputInputProps
props.multipleboolean
props.refReact.RefObject
props.widgetType"select"|"checkbox"|"radio"

Examples

Basic Usage

Multiple selection