A simple, yet customizable, React component for time selection.
npm install react-input-time
!build

A simple, yet customizable, React component for time selection.
_Requires React 16.8 or later_
``sh`
npm install --save react-input-time
or
`sh`
yarn add react-input-time
`jsx
import React from 'react';
import ReactDOM from 'react-dom';
import TimeInput from 'react-input-time';
const App = () => (
initialTime="13:37"
onChange={(event) => {}}
/>
);
ReactDOM.render(
`
- initialTime: The initial time value, required.input
- : A custom element to use instead of the default one.onChange
- : onChange handler, will be passed a complete SyntheticEvent` object.
All other props will be passed straight through to the rendered DOM element.
Originally based on logic from https://github.com/dima-bu/react-time-input, but heavily stripped down.