This NPM package presents a digital-clock component for ReactJS applications, it offers intuitive and visually appealing clock feature with easy integration capabilities.
npm install digital-clock-react
---
Live demo: digital-clock-react
---
- size: You have the option to showcase the clock face in two sizes: medium or small.
- timestamp: The clock has the capability to exhibit a precise timestamp, enabling you to depict any desired time.
- isMode24H(24/12 Hours Mode): The clock offers the flexibility to be presented in either the 12-hour or 24-hour format.
- useInterval: You can optionally use the clock as a static display by turning off the interval.
``js
import React from "react";
import { Clock } from "digital-clock-react";
import { myTimestamp } from "./consts";
function App() {
return (
export default App;
`
Installation:
- npm install digital-clock-react
Include the package in your project's dependencies.
Development:
- npm run build-jsdocs`For JSDocs of the utils functions, after running open the 'index.html' file located inside the 'js-docs' folder.
---
---
:octocat: Afek Sakaju
- LinkedIn: @afeksa
- GitHub: @Afek-Sakaju