From 0d24e82609840d6c918182f7f9bcfc34a116a3d8 Mon Sep 17 00:00:00 2001 From: aldencolerain Date: Fri, 11 May 2018 16:19:28 -0600 Subject: [PATCH] Update README.md to show how to import component The package by default exports a plugin, but it is also useful to document how to import the component directly. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 78e465d..6302011 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Install: ```bash npm install vue-js-toggle-button --save ``` -Import: +Import Plugin: ```javascript import ToggleButton from 'vue-js-toggle-button' Vue.use(ToggleButton) @@ -37,6 +37,11 @@ Use: :labels="{checked: 'Foo', unchecked: 'Bar'}"/> ``` +If you prefer not to use the plugin you can also import the component directly: +```javascript +import ToggleButton from 'vue-js-toggle-button/src/Button' +``` + ### Properties | Name | Type | Default | Description |