Clock component
![image](https://user-images.githubusercontent.com/6003532/39854315-ce02252c-5459-11e8-826a-f59717fbff0f.png)
Live examples here
Getting started
npm i --save-dev @adactive/arc-clock
OR
yarn add --dev @adactive/arc-clock
import AdsumClock from "@adactive/arc-clock"
...
<AdsumClock lang="en" timeFormat="12hrs" />
Props
AdsumClock.propTypes = {
lang: PropTypes.string.isRequired,
timeFormat: PropTypes.string.isRequired,
style: PropTypes.objectOf(PropTypes.string)
};
AdsumClock.defaultProps = {
lang: 'en',
timeFormat: '24hrs',
style: null
};
lang : "en" | "fr" | "zh"
timeFormat : "24hrs" | "12hrs"
style : Css react object
Copy component inside your project src folder
Less only
`npx @adactive/arc-clock copy --less-only`
Full copy
`npx @adactive/arc-clock copy`