AlanMorel / vida

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vida

Vida is a Vue 3 component library for utility components.

How to use

  1. Install vida by running this command in the root folder of your Vue project:
pnpm add @alanmorel/vida
  1. 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>

How to preview

To preview all that Vida has to offer, simply run the example page:

pnpm serve

About

License:MIT License


Languages

Language:Vue 70.2%Language:SCSS 20.2%Language:TypeScript 8.5%Language:HTML 1.2%