@maibornwolff/mwui-vue
TypeScript icon, indicating that this package has built-in type declarations

0.6.6 • Public • Published

npm

The Liberation Machine

MWUI - Vue Integration

Get started

Import the library plugin in the main.js file:

npm i @maibornwolff/mwui-stencil
npm i @maibornwolff/mwui-vue
import { MwuiComponents } from '@maibornwolff/mwui-vue';
import '@maibornwolff/mwui-stencil/dist/mwui-stencil/mwui-stencil.css';

createApp(App).use(MwuiComponents).mount('#app');

You can then use your components within vue:

<template>
  <mw-button test-id="test-id" label="Press here" />
</template>

<script>
import { MwButton } from '@maibornwolff/mwui-vue';

export default {
  name: 'HelloWorld',
  components: {
    MwButton
  }
}

Known Issues

Vue will throw a deprecation error if slots are used. This is due to eslint misidentifying the slots as outdated Vue 2 syntax.

To disable the error, add the following under eslintConfig within the package.json:

"rules": {
    "vue/no-deprecated-slot-attribute": "off"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @maibornwolff/mwui-vue

Weekly Downloads

11

Version

0.6.6

License

none

Unpacked Size

47.2 kB

Total Files

15

Last publish

Collaborators

  • prummel
  • fuasmattn
  • bridgear
  • thorstenrinne
  • sspringer
  • mrpatpat
  • codecharta
  • sken