Test a component
Now that we have everything correct we are going to test and verify that everything is ready
for this you can enter the pages folder and add a new test call or choose the index.vue
that represents the main page of our project.
Add a component
Let’s try adding a simple component like vsButton the final code could be something like this
<template>
<div class="app">
<vs-button active> Hello World Vuesax + Nuxtjs </vs-button>
</div>
</template>
<script setup lang="ts"></script>
<style>
.app {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
</style>
and if we see the page /test
we find something like this