@readapt/app-container
This package contains Vue.js components shared between readapt apps.
Installation
Prerequisites
Install peer-dependencies
vue
npm
- Install
@readapt/app-container
npm install @readapt/app-container
Usage
Register shared components in your Vue.js app typically your main.ts
import ReadaptComponents from '@readapt/app-container'
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/app-container'
const MyComponent = defineComponent({
components: { ColorPicker },
setup() {
}
})