npm i vuelity
<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 { 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]);
});
app.component('vt-button', Vuelity['vt-button']);
Or register all at once:
Object.keys(Vuelity).forEach(el => {
app.component(el, Vuelity[el]);
});