Skip to content

Daniel-Knights/vuelity

Repository files navigation

Vuelity

npm vue

Interactive Docs

Codepen Demo

Install

CLI

npm i vuelity

CDN

<script src="https://unpkg.com/vue@3.0.0/dist/vue.global.js"></script>
<script src="https://unpkg.com/vuelity/dist/vuelity.umd.min.js"></script>

Import

CLI

import { VTButton } from 'vuelity';

export default {
    components: { VTButton };
}

Or register all at once in main.js:

import * as Vuelity from 'vuelity';

Object.keys(Vuelity).forEach(el => {
    app.component(el, Vuelity[el]);
});

CDN

app.component('vt-button', Vuelity['vt-button']);

Or register all at once:

Object.keys(Vuelity).forEach(el => {
    app.component(el, Vuelity[el]);
});