Vuestrap Docs Components are useful for documenting other vuestrap web components.
For compiled components, use it within your Vue instance like this:
new Vue({
el: '#app',
components: { 'docs-demo': vuestrapDocs.demo }
})
-- OR --
If you chosen to work with source components, just import* desired component like so:
import demo from 'vuestrap-docs/src/components/demo'
and then load it in your Vue instance:
new Vue({
el: '#app',
components: { 'docs-demo': demo }
})
*Note: You will need Babel Loader in your Webpack config file to support ES6 syntax.
You can then use docs-demo component in your html, like so:
<docs-demo :meta="metaData" :snippet="snippet"></docs-demo>
- create responsive sidebar