Clock component
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`