RULA Web Components
A collection of web components built using the StencilJS compiler. These components are still in the early stages of development and are subject to changes.
Using
Node Modules
- Run
npm install @rula/web-components --save
- Put a script tag in the page head similar to
<script src='node_modules/@rula/web-components/dist/rula.js'></script>
- Use the components anywhere in your site.
In another StencilJS app
- Run
npm install @rula/web-components --save
- Include the
import '@rula/web-components';
in part of the app structure. - Use the components in your StencilJS app JSX.
Components
Currently there are two components, map
and map-editor
. Both serve the basic function of displaying a collection of elements on a map. The editor adds additional functionality by allowing editing, adding and removing elements.