Skip to content

Commit 61bc1b9

Browse files
authored
Update README.md
1 parent 9875e1c commit 61bc1b9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,28 @@ Use:
5252
| --- | --- |
5353
| change | Triggered whenever state of the component changes. <br>Contains: <br>`value` - state of the object <br>`srcEvent` - source click event |
5454

55+
### SSR
56+
57+
Include plugin in your nuxt.config.js file:
58+
```
59+
module.exports = {
60+
plugins: ['~plugins/vue-js-toggle-button']
61+
}
62+
```
63+
And your plugins/vue-js-modal.js will look like:
64+
```
65+
import Vue from 'vue'
66+
import Button from 'vue-js-toggle-button/dist/ssr.index'
67+
68+
Vue.use(Button)
69+
```
70+
5571
### Browser compatibility
5672

5773
* Chrome: 48+
5874
* Firefox: 28+
5975
* Safari: 10.1+
60-
* Edge: :pray: for Microsoft
76+
* Edge: :pray: for Microsoft (works but width/height will be set to default in older versions)
6177

6278
### Font size
6379
To change font size please use basic css:

0 commit comments

Comments
 (0)