@cjbutton/digital-clock
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Digital Clock

Digital Clock Display with options for 12/24 hour clock in three colors, with settable timezone.

Written in TypeScript with Sass.

Cyan-Digital-Clock

Install

npm install --save @cjbutton/digital-clock

License

MIT © CJButton

Example Usage

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' timezone='America/New_York'>

Options

Prop Values Type Default
Type "12" / "24" string "24"
Color "cyan" / "red" / "green" string "cyan"
Timezone IANA Time Zone Name string null ( will display local time )

Readme

Keywords

none

Package Sidebar

Install

npm i @cjbutton/digital-clock

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

33.3 kB

Total Files

11

Last publish

Collaborators

  • cjbutton