vfes-ui

Vodafone Web Components UI

Usage no npm install needed!

<script type="module">
  import vfesUi from 'https://cdn.skypack.dev/vfes-ui';
</script>

README

Built With Stencil

VFES-UI

This is a module to recopile all the Web Components developed to VFES.

Allocate on the root directory of your project and execute: npm i vfes-ui -g

Components

To reach a first test example, the Web Components developed are:

  • vfes-grid:
  • vfes-button:
  • vfes-counter:

Proof of Concept

Developed to execute test WC over differents libraries:

  • Angular
  • React
  • Vue

Using Web Components

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://www.npmjs.com/package/vfes-ui@0.0.X/dist/mycomponent.js'></script> in the head of your index.html
  • Then you can use the WC anywhere in your template, JSX, html etc

Node Modules

  • Run npm install vfes-ui --save
  • Put a script tag similar to this <script src='node_modules/vfes-ui/dist/mycomponent.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install vfes-ui --save
  • Add an import to the npm packages import vfes-ui;
  • Then you can use the element anywhere in your template, JSX, html etc