ChoiceList
An input showing a set of choices to choose from.
Use ChoiceList to create a list of grouped radio buttons or checkboxes.
Use the type property to set the type of list you want to create. Set it to
"multiple" for a multi-choice list.
Set the bordered property to show borders.
Use the spacing property to set the spacing between the list items.
Use the errorMessage property to set the error message.
You must select at least one option You must select at least one option You must select at least one option You must select at least one option
Allow single or multiple choice selection.
Called when a selection is made or removed. ((selected: string[]) => void) | ((selected: string) => void)
List of possible choices. { id: string; label: string; disabled?: boolean | undefined; }[]
Selected choice or choices.
Displays an error message.
Displays borders around the items.
Vertical spacing between the items.
An object with the data keys and values.