Homecomponentsinput
ChoiceList
An input showing a set of choices to choose from.
Use ChoiceList to create a list of grouped radio buttons or checkboxes.
Choice Types
Use the type property to set the type of list you want to create. Set it to "multiple" for a multi-choice list.
Multiple
Borders
Set the bordered property to show borders.
Spacings
Use the spacing property to set the spacing between the list items.
Tight
Tight
Loose
Loose
Error Message
Use the errorMessage property to set the error message.
You must select at least one option
API
type
Required
multiple
single
onChange
Required
((selected: string[]) => void) | ((selected: string) => void)
name
Required
string
choices
Required
{ id: string; label: string; disabled?: boolean | undefined; }[]
value
string | string[]
errorMessage
string
bordered
true
false
spacing
loose
tight
data
DataAttributeMap