1.1.19 • Published 6 years ago
seven-segment-counter v1.1.19
Seven Segment Counter
This is a ReactJS component that is a simple counter you can implement in your webapp. It is stylized to look like a seven segment analog display.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
- Node Package Manager (NPM): https://nodejs.org/en/
- ReactJS: https://reactjs.org/
Installing
Easy install through npm:
npm install --save seven-segment-counter
- In JS file:
import SevenSegmentCounter from 'seven-segment-counter';
Put on your local machine:
- Download project
- Take app.js and put it into directory
- In JS file:
import SevenSegmentCounter from <path-to-file>;
Usage:
- In render method:
<SevenSegmentCounter index={-1} height={75} width={300} onColor={"#FFFFFF"} offColor={"#444444"} backgroundColor={"#000000"}/>
- Properties:
Property | Type | Description |
---|---|---|
index | integer | starting value of counter - 1 |
width | integer | width of counter |
onColor | string of hex or color | color of numbers |
offColor | string of hex or color | color of the number inverse |
backgroundColor | string of hex or color | color of the background |
className | string | css class |
buttonTag | Object: {increment: , decrement: } | custom button label |
Built With
Authors
- Cody Abe - Initial work - CodeMasa
License
This project is licensed under the ISC License
1.1.19
6 years ago
1.1.18
6 years ago
1.1.17
6 years ago
1.1.16
6 years ago
1.1.14
6 years ago
1.1.13
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago