1.1.19 • Published 5 years ago

seven-segment-counter v1.1.19

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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

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:
PropertyTypeDescription
indexintegerstarting value of counter - 1
widthintegerwidth of counter
onColorstring of hex or colorcolor of numbers
offColorstring of hex or colorcolor of the number inverse
backgroundColorstring of hex or colorcolor of the background
classNamestringcss class
buttonTagObject: {increment: , decrement: }custom button label

Built With

Authors

License

This project is licensed under the ISC License

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago