z0h4n / react-seven-segment-display

A Seven Segment Display Component for ReactJS
1 stars 3 forks source link

A Seven Segment Display Component for ReactJS

Installation

NPM

npm install --save react-seven-segment-display

Web

Download react-seven-segment-display.min.js

<script src="https://github.com/z0h4n/react-seven-segment-display/raw/master/react-seven-segment-display.min.js"></script>

Usage

// ESM
import SevenSegmentDisplay from 'react-seven-segment-display';

// CommonJS
const SevenSegmentDisplay = require('react-seven-segment-display').default;

// Web
var SevenSegmentDisplay = window.reactSevenSegmentDisplay.default;

Props

value

width

height

onColor

offColor