Skip to content

Commit cf2dbb9

Browse files
authored
Merge pull request #66 from aldencolerain/master
Update README.md to show how to import component
2 parents a3d6041 + 0d24e82 commit cf2dbb9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Install:
1717
```bash
1818
npm install vue-js-toggle-button --save
1919
```
20-
Import:
20+
Import Plugin:
2121
```javascript
2222
import ToggleButton from 'vue-js-toggle-button'
2323
Vue.use(ToggleButton)
@@ -37,6 +37,11 @@ Use:
3737
:labels="{checked: 'Foo', unchecked: 'Bar'}"/>
3838
```
3939

40+
If you prefer not to use the plugin you can also import the component directly:
41+
```javascript
42+
import ToggleButton from 'vue-js-toggle-button/src/Button'
43+
```
44+
4045
### Properties
4146

4247
| Name | Type | Default | Description |

0 commit comments

Comments
 (0)