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

1.2.6 • Public • Published

React Clock

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

An analog clock for your react app.

Quick Start

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

export default 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 contributors.

License

Licensed under the MIT License.

Package Sidebar

Install

npm i @uiw/react-clock

Weekly Downloads

7

Version

1.2.6

License

MIT

Unpacked Size

39.2 kB

Total Files

17

Last publish

Collaborators

  • uiwjs
  • wcjiang