Vida is a Vue 3 component library for utility components.
- Install
vida
by running this command in the root folder of your Vue project:
pnpm add @alanmorel/vida
- Tell your app to use
vida
globally:
import Vida from "@alanmorel/vida";
const app = createApp(App);
app.use(Vida);
or alternatively explicitly tell Vue where you're getting the component from, like so:
<template>
<VidaSample />
</template>
<script>
import { VidaSample } from "@alanmorel/vida";
export default {
name: "App",
components: {
VidaSample
}
};
</script>
To preview all that Vida has to offer, simply run the example page:
pnpm serve