digit-cell

1.1.11 • Public • Published

Published on NPM

<digit-cell>

The digit-cell element represents a single Digit within some component or application like a Digital Clock square.

See: Demo.

Usage

Installation

npm install --save digit-cell

In an HTML file

<html>
  <head>
    <script type="module">
      import 'digit-cell.js';
    </script> 
  </head>
  <body>
    <digit-cell value="7" size="50"></digit-cell>
  </body>
</html>

In a Polymer 3 element

import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
 
import 'digit-cell.js';
 
class ExampleElement extends PolymerElement {
  static get template() {
    return html`
      <digit-cell value="7" size="50"></digit-cell>
    `;
  }
}
 
customElements.define('example-element', ExampleElement);

Contributing

If you want to send a PR to this element, here are the instructions for running the tests and demo locally:

Installation

git clone https://github.com/PolymerElements/iron-icon
cd iron-icon
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve -o

Running the tests

polymer test --npm

Package Sidebar

Install

npm i digit-cell

Weekly Downloads

2

Version

1.1.11

License

BSD-3-Clause

Unpacked Size

15.7 kB

Total Files

8

Last publish

Collaborators

  • banjara