@cscfi/csc-ui-vue
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Vue directive for csc-ui components

Installation

npm install @cscfi/csc-ui-vue

Usage

// main.ts

import { createApp } from 'vue';
import { applyPolyfills, defineCustomElements } from 'csc-ui/loader';
import { vControl } from '@cscfi/csc-ui-vue';

import App from './App.vue';

const app = createApp(App);

app.directive('control', vControl);

applyPolyfills().then(() => {
  defineCustomElements();
});

app.mount('#app');
// vue component script

import { ref } from 'vue';

const test = ref('');
<!-- vue component template -->

<c-text-field
  v-model="test"
  v-control
  label="Working 2 way binding"
/>

Readme

Keywords

Package Sidebar

Install

npm i @cscfi/csc-ui-vue

Weekly Downloads

33

Version

0.0.2

License

MIT

Unpacked Size

2.15 kB

Total Files

5

Last publish

Collaborators

  • junyholm
  • oskari.vaisto
  • ville.eriksson
  • tella