@cscfi/csc-ui-vue

Vue 3 directive for csc-ui components
5,265
Install
npm install @cscfi/csc-ui-vue
Latest Version:0.0.2
License:MIT
Last Updated:Oct 27, 2023
Links: npm
Maintainer: junyholm

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"
/>

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released License
0.0.2 MIT
0.0.1 ISC