You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,14 @@ with GitHub sponsors!
34
34
35
35
Huge thanks to the [sponsors](https://github.com/sponsors/sagalbot) and [contributors](https://github.com/sagalbot/vue-select/graphs/contributors) that make Vue Select possible!
36
36
37
-
## Install
37
+
## Get started
38
+
39
+
**Vue 3 / Vue Select 4.x-beta**
38
40
39
41
> 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!
40
42
43
+
Install:
41
44
42
-
**Vue 3 / Vue Select 4.x-beta**
43
45
```bash
44
46
yarn add vue-select@beta
45
47
@@ -48,7 +50,32 @@ yarn add vue-select@beta
48
50
npm install vue-select@beta
49
51
```
50
52
53
+
Then, import and register the component:
54
+
55
+
```js
56
+
# main.ts or main.js
57
+
58
+
import { createApp } from"vue";
59
+
importAppfrom"./App.vue";
60
+
61
+
import { VueSelect } from"vue-select";
62
+
63
+
createApp(App)
64
+
.component("v-select", VueSelect)
65
+
.mount("#app");
66
+
```
67
+
68
+
The component itself does not include any CSS. You'll need to include it separately in your Component.vue:
0 commit comments