File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 5959
6060** npm**
6161``` shell
62+ # Vue 2
6263npm install vue-socials
64+
65+ # Vue 3
66+ npm install vue-socials@next
6367```
6468
6569** yarn**
6670``` shell
71+ # Vue 2
6772yarn add vue-socials
73+
74+ # Vue 3
75+ yarn add vue-socials@next
6876```
6977
7078** Import all components**
7179``` js
80+ /**
81+ * Vue 2
82+ */
7283import Vue from ' vue'
7384import VueSocials from ' vue-socials' ;
7485
7586Vue .use (VueSocials)
87+
88+ /**
89+ * Vue 3
90+ */
91+ import { createApp } from ' vue'
92+ import VueSocials from ' vue-socials' ;
93+ import App from ' ./App.vue'
94+
95+ const app = createApp (App)
96+ app .use (VueSocials)
7697```
7798
7899** Import only specific component**
79100``` js
101+ /**
102+ * Vue 2
103+ */
80104import Vue from ' vue'
81105import { SGithub } from ' vue-socials' ;
82106
83107Vue .component (' SGithub' , SGithub)
108+
109+ /**
110+ * Vue 3
111+ */
112+ import { createApp } from ' vue'
113+ import { SGithub } from ' vue-socials' ;
114+ import App from ' ./App.vue'
115+
116+ const app = createApp (App)
117+ app .component (' SGithub' , SGithub)
84118```
85119
86120
You can’t perform that action at this time.
0 commit comments