Skip to content

Installation in the application

The installation is described on the Working with NPM page. Installation is actually the last step in a process that starts with creating a new Vue application.

The use of all methodologies and patterns indicated in this documentation is important and sets the standard for software development based on Riupress UI.

Imports to the application

Importing each component takes place as standard:

ts
import "Component" from "@riupress/ui"

If there is a need to install all components globally in the application, write a plugin installing everything in the application.

ts
import type { App } from 'vue'
import * as components from '@riupress/ui'
export default {
  install: (app: App) => {
    for (const key in components) {
      app.component(key, components[key])
    }
  }
}