Skip to main content

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 packages:

  • for Form controls (the core library) run the next command:
npm install @svar-ui/svelte-core
  • for the Menu widget:
npm install @svar-ui/svelte-menu
  • for the Toolbar widget:
npm install wx
  • for the Comments widget:
npm install @svar-ui/svelte-comments
  • for the Tasklist widget:
npm install @svar-ui/svelte-tasklist
note

Core packages migrated from wx-svelte-* to @svar-ui namespace. We continue publishing wx-svelte-* packages until Svelte SVAR 3.0 update.

Initialization​

Use the corresponding tag to initialize the required control on a page:

<script>
import { Button} from "@svar-ui/svelte-core";
</script>

<Button>Click Me</Button>

Follow the related Controls sections for more information on initialization and configuration. Please, also refer to the Getting started page.