Components
Last updated
Last updated
These are useful when defining app specific standard of the vSelect component. For a single use case scenarios Slots should be the easier and better approach.
Usually slots should be enough to customize the look and feel of the vue-select component but in some advanced scenarios one may need greater control over the behavior of internals. In such cases one may replace any of the internal components through mixins. Seen an example in Layout & Theming section.
All the components may access the vSelect instance and all its data via this.$parent
or inject: ['select']
. Here is a list of the available components:
Component
Props
Description
Option
option, index, state, select
Displays an option in the dropdown
Selected
option, index, state, select
Displays selected value. Used both in single and multiple mode.
Layout
Defines the overall structure of the select component. Check Layout & Theming