Skip to content

uiwjs/react-clock

Repository files navigation

React Clock

NPM Downloads Build & Deploy Open in unpkg npm version Open in Gitpod

An analog clock for your react app.

Quick Start

import ReactClock from '@uiw/react-clock';

function Demo() {
  return (
    <ReactClock />
  );
}

Props

type ClockProps = {
  width?: number;
  height?: number;
  value?: Date;
  run?: boolean
} & React.SVGProps<SVGSVGElement>;

Development

Runs the project in development mode.

# Step 1, run first, listen to the component compile and output the .js and type .d.ts file
npm run watch
# Step 2, development mode, listen to compile preview website instance
npm run start

Builds the app for production to the build folder.

npm run build

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

Licensed under the MIT License.