vue-chatbox
v0.0.5
Published
A Vue.JS component that appends a chatbox window into your page.
Downloads
3
Maintainers
Readme
Vue ChatBox
A Vue component that adds a chatbox to your page.
This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!
Installation
npm install --save vue-chatbox
Browser
Include the script file, then install the component with Vue.use(VueChatbox);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-chatbox/dist/vue-chatbox.min.js"></script>
<script type="text/javascript">
Vue.use(VueChatbox);
</script>
Module
import VueChatbox from 'vue-chatbox';
Usage
Once installed, it can be used in a template as simply as:
<vue-chatbox></vue-chatbox>