1.0.10 • Published 10 months ago
codes-components v1.0.10
How to use components
First import the code in your app.js
import codesComponents from 'codes-components';
After that, you need to add it to the app use like this:
app.use(codesComponents);
Now, if you want to use a certain component, you will have to import it in your .vue file and use it like this:
<script setup>
import { ComponentNameHere } from 'codes-components';
</script>
<template>
<ComponentNameHere text="Hello!"/> <!-- Text is optional, check comopnent for available props -->
</template>