@veebox/core
v1.0.3
Published
The core package of VBox - a polymorphic Vue.js component with a runtime styling engine.
Downloads
2,119
Readme
VBOX
A polymorphic Vue.js component with a lightweight runtime styling engine
Installation
npm install @veebox/core @veebox/vuepnpm add @veebox/core @veebox/vueyarn add @veebox/core @veebox/vueThen, import and register the plugin globally.
import { createApp } from 'vue';
import App from './App.vue';
import { VBoxPlugin } from '@veebox/vue';
const app = createApp(App);
app.use(VBoxPlugin);
app.mount('#app');Internally, the plugin registers the VBox component globally. Now you can use
the component in your Vue templates to style elements.
<template>
<v-box
is="img"
src="./images/victor-osihmen.jpg"
alt="Victor Osimhen"
height="48px"
width="48px"
object-fit="cover"
border-radius="50%"
/>
</template>