@ema/components
v1.0.17
Published
Emagine Reality: webcomponents library
Downloads
91
Readme
Web components library
@ema/components
- Reusable Web Components
- The web components are standard HTML elements, so they work in any major framework or with no framework at all.
- In many cases, the components can be used as a drop in replacement for traditional frontend frameworks to build widgets, microapps, apps, etc.
Using the webcomponents library
Script tag
- Put the following script tag in the head of your index.html:
<script src='https://unpkg.com/@ema/components/dist/webcomponents.js'></script> - You can then use the webcomponents anywhere in your template, JSX, html etc.
In a stencil-starter app
- Run
npm install @ema/components --save - Add an import to the npm packages
import '@ema/components'; - Then you can use the webcomponents anywhere in your template, JSX, html etc
Dev: getting started
Clone the repo, then run:
npm install
npm startTo watch for file changes during develop, run:
npm run devTo build the components and classes for production, run:
npm run buildTo run the unit tests for the components and classes, run:
npm testNeed help? Check out the Stencil docs here.
