@readapt/shared-components
v1.8.4
Published
This package contains Vue.js components shared between readapt apps.
Downloads
7
Keywords
Readme
@readapt/shared-components
This package contains Vue.js components shared between readapt apps.
Installation
Prerequisites
Install peer-dependencies
vue
bootstrap
bootstrap-vue
@readapt/settings
core-js
npm
- Install
@readapt/shared-component
npm install @readapt/shared-components
Usage
Register shared components in your Vue.js app typically your main.ts
import ReadaptComponents from '@readapt/shared-components'
Vue.use(ReadaptComponents)
Add the ReadaptComponent in your template for example:
<template>
<readapt-color-picker :value="bar" @selectColor="fooFn" />
</template>
Or add it individually in your components (for smaller bundles)
import { defineComponent } from 'vue'
import { ColorPicker } from '@readapt/shared-components'
const MyComponent = defineComponent({
components: { ColorPicker },
setup() {
// ...
}
})