react component for 7-segment display (digit), includes dot, colon and am-pm digits
npm install react-led-digit
tsx
import { Digit, BlinkingDigit } from 'react-led-digit';
;
`
Styled segments example (see sandbox):
`tsx
import { Digit, BlinkingDigit } from 'react-led-digit';
<>
value="0"
segmentStyle={{
color: 'red',
colorOff: 'blue',
length: '1em',
thickness: '.5em',
cornerShift: '-.1em',
spacing: '-.1em',
shiftAD: '.1em',
opacityOn: 1,
opacityOff: 0.25,
transitionDuration: '.5s',
}}
/>
>;
``