@genexus/chameleon
v0.6.1
Published
chameleon - A library of white-label, highly-customizable and reusable web components
Downloads
57
Keywords
Readme
chameleon web components
A library of white-label, highly-customizable and reusable web components
Getting Started
npm install
npm startRunning the tests
To run the unit tests for the custom elements, run:
npm testBuilding for production
To build the design for production, run:
npm run buildUsing this library
There are three strategies we recommend for using these web components.
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/@genexus/[email protected]/dist/chameleon/chameleon.esm.js'></script>in the head of your index.html - Then you can use the web components anywhere in your template, JSX, html etc
Node Modules
- Run
npm install @genexus/chameleon --save - Put a script tag similar to this
<script src='node_modules/@genexus/chameleon/dist/chameleon/chameleon.esm.js'></script>in the head of your index.html - Then you can use the web components anywhere in your template, JSX, html etc
In a Stencil project
- Run
npm install @genexus/chameleon --save - Add an import to the library inside
src/index.ts:import "@genexus/chameleon"; - Then you can use the web components anywhere in your template, JSX, html etc
