Skip to content

Commit 14dcc09

Browse files
committed
change install guide on readme
1 parent 9eb17b2 commit 14dcc09

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* [Built With](#built-with)
3232
* [Getting Started](#getting-started)
3333
* [Installation](#installation)
34+
* [Default Import](#default-import)
35+
* [Browser](#browser)
3436
* [Usage](#usage)
3537
* [Roadmap](#roadmap)
3638
* [Contributing](#contributing)
@@ -64,6 +66,32 @@ To get a local copy up and running follow these simple steps.
6466
npm install vue-tailwindcss-typeahead
6567
```
6668

69+
### Default Import
70+
71+
Install the component:
72+
73+
```javascript
74+
import Vue from 'vue'
75+
import VueTailwindcssTypeahead from '@/vue-tailwindcsscss-typeahead.vue';
76+
77+
Vue.use(VueTailwindcssTypeahead)
78+
```
79+
80+
81+
### Browser
82+
83+
```html
84+
<link rel="stylesheet" href="vue-tailwindcss-typeahead/dist/vue-tailwindcss-typeahead.css"/>
85+
86+
<script src="vue.js"></script>
87+
<script src="vue-tailwindcss-typeahead/dist/vue-tailwindcss-typeahead.min.js"></script>
88+
```
89+
90+
If Vue is detected, the plugin will be installed automatically. If not, install the component:
91+
92+
```javascript
93+
Vue.use(VueTailwindcssTypeahead)
94+
```
6795

6896

6997
<!-- USAGE EXAMPLES -->

0 commit comments

Comments
 (0)