Installation and initialization
Installation
SVAR Core library includes separate packages for Form controls, Menu, Toolbar, Comments, and Tasklist. You can use npm to install the required packeges:
- for Form controls (the core library) run the next command:
npm install @svar-ui/vue-core
- for the Menu widget:
npm install @svar-ui/vue-menu
- for the Toolbar widget:
npm install wx
- for the Comments widget:
npm install @svar-ui/vue-comments
- for the Tasklist widget:
npm install @svar-ui/vue-tasklsit
note
Core packages migrated from wx-vue-* to @svar-ui namespace. We continue publishing wx-vue-* packages until Vue SVAR 3.0 update.
Initialization
Use the corresponding tag to initialize the reauired control on a page:
<script setup>
import { Button } from "@svar-ui/vue-core";
</script>
<template>
<Button>Click Me</Button>
</template>
Follow the related Controls sections for more information on initialization and configuration. Please, also refer to the Getting started page.