2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

docs: Add missing components prop to props API (#1337)

This commit is contained in:
Sølve Tornøe
2020-12-18 23:20:15 +01:00
committed by GitHub
parent 46aeba8629
commit 5dfb9e5f73
+23
View File
@@ -121,6 +121,29 @@ closeOnSelect: {
},
```
## components <Badge text="v3.1.0+" />
API to overwrite default vue-select components with your own. This can be used to change the clear button or select chevron with your own markup.
The object provided to the components prop will be merged with Vue Select's default components.
See [Components guide](../guide/components.md) for more details.
```js
import Deselect from './Deselect';
import OpenIndicator from './OpenIndicator';
// ...
components: {
type: Object,
default: function () {
Deselect,
OpenIndicator
}
},
```
## createOption