Live demo
Demo source
A checkbox item is one option in a multiselect list. The single-choice dropdown uses plain dropdown items instead.
- Give each item a
valueand alabel, and add adescriptionwhen the option needs more context. - Set
disabledfor an option that cannot be chosen. - Bind the multiselect, not the items: it collects the checked values into its own value.
Anatomy
See the multiselect anatomy for the parent field composition. This checkbox item belongs to its options list.
Parts in the open list
The parent design shows a checkbox, its label and an optional description for each option. Selected items are grouped above the remaining choices, with a divider between sections and scrolling for longer lists. The selection-count badge belongs to the multiselect field.
Use label and description props or their matching slots for the item
content. Keep value stable and unique. The parent handles searching,
selection order and keyboard navigation; its error and read-only state
apply to the whole field.
Guidelines
Use concise labels, add descriptions only where choices need explanation, and order the underlying list alphabetically, by relevance or in logical groups. Keep disabled options visibly unavailable without changing their meaning.