Select fields components are used for collecting user provided information from a list of options.
When using objects for the items prop, you must associate item-text and item-value with existing properties on your objects. These values are defaulted to text and value and can be changed.
Select your desired component from below and see the available props, slots, events and functions.
Below is a collection of simple to complex examples.
You cannot use disabled
You cannot use read-only
v-select, but it looks default.
A standard single select has a multitude of configuration options.
Use a custom prepended or appended icon.
A multi-select can utilize
v-chip as the display for selected items.
You can use
dense prop to reduce the field height and lower max height of list items.
You can specify the specific properties within your items array correspond to the text and value fields. By default, this is text and value. In this example we also use the
return-object prop which will return the entire object of the selected item on selection.
v-select components can be optionally expanded with prepended and appended items. This is perfect for customized select-all functionality.
selection slot can be used to customize the way selected values are shown in the input. This is great when you want something like
foo (+20 others) or don't want the selection to occupy multiple lines.
Ready for more? Continue reading with: