@musangowope/hot-components-vue
v1.3.4
Published
Vue specific wrapper for @musangowope/hot-components
Downloads
11
Maintainers
Readme
@musangowope/hot-components-vue
Vue3 component wrapper library built from @musangowope/hot-components
Installation
npm
npm install @musangowope/hot-components-vue
OR
yarn
yarn add @musangowope/hot-components-vue
In the root of your vue project, create a file called vue.config.js
and add the following code:
module.exports = {
chainWebpack: config => config.resolve.symlinks(false)
}
Getting started
Here is a basic example of how to use LaTableOfContents
in Vue3:
<template>
<LaTableOfContents :items="items" />
</template>
<script>
import { LaTableOfContents } from "@musangowope/hot-components-vue";
export default {
components: {
LaTableOfContents
},
data: () => ({
items: [
{
title: 'Entire document',
children: [
{
title: 'Ch. 1 – ',
children: [
{
title: 'Part B',
},
],
},
{
title: 'Ch. 2 – ',
},
],
}
]
})
}
</script>
List of components
View more examples of our various components.