@starport/vue
A collection of Vue 3 components to help build Starport front-end applications.
Install
Assuming you have a Vue 3 project, just run:
npm install --save @starport/vue
The components also require @starport/vuex
to be installed which is set as a peer dependency. More information here
Usage
If you want to import the entire library, in your main.js
file:
import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import vueLib from '@starport/vue'
const app = createApp(App)
app.use(store).use(vueLib).mount('#app')
You can also import only specific components in your main.js
file:
import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import { SpTokenSend } from '@starport/vue'
const app = createApp(App)
app.use(store).use(SpTokenSend).mount('#app')
Components
...