digit-cell
v1.1.11
Published
A Polymer 3 Component which represents a single Digit within some component or application like a Digital Clock
Downloads
11
Maintainers
Readme
<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