react-analogue-time
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

react-analogue-time

A small and simple time picker for react based on google material UI. This component is a wrapper for https://github.com/ShaneGH/analogue-time-picker

time picker

  • 12h and 24h versions
  • Mobile and desktop enabled
  • Custom styles, and works with material UI
  • Typescript typings included
  • Responsive
  • Accessable

Install

npm install react-analogue-time --save

https://github.com/ShaneGH/react-analogue-time/releases/latest

Use

// javascript / typescript
import { TimePicker } from 'react-analogue-time'
 
// react stateless component
function Time () {
    // The TimePicker accepts all of the same props as an <input />
    <TimePicker onTimeChanged={(hour, minute) => alert(`${hour}:${minute}`)} className="my-class" />
}

Package Sidebar

Install

npm i react-analogue-time

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

142 kB

Total Files

7

Last publish

Collaborators

  • shanegh