@readapt/shared-components
TypeScript icon, indicating that this package has built-in type declarations

1.8.4 • Public • Published

@readapt/shared-components

This package contains Vue.js components shared between readapt apps.

Installation

Prerequisites

Install peer-dependencies

  1. vue
  2. bootstrap
  3. bootstrap-vue
  4. @readapt/settings
  5. core-js

npm

  1. 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() {
    // ...
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @readapt/shared-components

Weekly Downloads

5

Version

1.8.4

License

Apache-2.0

Unpacked Size

6.47 MB

Total Files

39

Last publish

Collaborators

  • panzerdp
  • readapt-contentsquare
  • sylvinus
  • eboukamza
  • aradjdi-contentsquare