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

docs(vue3): add Vue 3 notes to install

This commit is contained in:
Jeff Sagal
2022-02-22 11:04:43 -08:00
committed by GitHub
parent 3e040d848f
commit 4e3e3c1d01
+13 -6
View File
@@ -35,6 +35,19 @@ Huge thanks to the [sponsors](https://github.com/sponsors/sagalbot) and [contrib
## Install
> Vue 3 support is on the `beta` channel: `vue-select@beta`, and will become the new default when `v4` is released. See [#1579](https://github.com/sagalbot/vue-select/issues/1597) for more details!
**Vue 3 / Vue Select 4.x-beta**
```bash
yarn add vue-select@beta
# or use npm
npm install vue-select@beta
```
**Vue 2 / Vue Select 3.x**
```bash
yarn add vue-select
@@ -58,12 +71,6 @@ The component itself does not include any CSS. You'll need to include it separat
import "vue-select/dist/vue-select.css";
```
Alternatively, you can import the scss for complete control of the component styles:
```scss
@import "vue-select/src/scss/vue-select.scss";
```
You can also include vue-select directly in the browser. Check out the
[documentation for loading from CDN.](https://vue-select.org/guide/install.html#in-the-browser).