g-element

2.7.1 • Public • Published

Published on NPM

G-ELEMENT

A collection of elements used by Authentic System Solutions.

Elements

Usage

Installation

npm install --save g-element

In an html file

<html>
  <head>
    <script type="module">
      import 'g-element/elements/my-element.js';
    </script> 
  </head>
  <body>
    <my-element></my-element>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import 'g-element/elements/my-element.js';
 
class SampleElement extends PolymerElement {
  static get template() {
    return html`
     <my-element></my-element>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Viewing Your Element

polymer serve

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i g-element

    Weekly Downloads

    5

    Version

    2.7.1

    License

    MIT

    Unpacked Size

    297 kB

    Total Files

    43

    Last publish

    Collaborators

    • tigerlegab