Digital Clock Display with options for 12/24 hour clock in three colors. Has a soft glow affect as well.
Written in TypeScript with Sass.
npm install --save @cjbutton/digital-clock
MIT © CJButton
import DigitalClock from '@cjbutton/digital-clock'
import '@cjbutton/digital-clock/dist/index.scss'
class Example extends Component {
render() {
return <DigitalClock />
}
}
We can pass props like so:
<DigitalClock style="12" color="green">
Prop | Values | Type | Default |
---|---|---|---|
Type | "12" / "24" | string | "24" |
Color | "cyan" / "red" / "green" | string | "cyan" |