Created from the Vue Quick Start Guide
npm install
npm link ../../../[name-of-project-directory]
npm run devRuns the app in the development mode.
-
Add
@disciple.tools/web-componentspackage to your project (npm install @disciple.tools/web-components) -
Include the web components package in the Vue component where you want to use them:
import '@disciple.tools/web-components'; -
Follow Vue Instructions to configure custom component resolution. There is a code snippet that needs to be added to
vite.config.jsorvue.config.js. -
Use the components as you would any normal Vue component:
<template> <dt-tile title="My Tile" :expands="true"> <dt-text name="myText" label="My Text Field" /> </dt-tile> </template>