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

1.2.2 • Public • Published

React time picker field

A simple time picker for React. It's based on vue-timepicker, but it's not directly a port. It currently is very basic, and only supports these props:

Prop Type Default Description
value string '00:00' The value of the time picker
onChange function () => {} The function to call when the value changes

Usage

import React from 'react';
import TimePicker from 'react-time-picker-field';

const App = () => {
	const [time, setTime] = React.useState('12:00');

	return (
		<TimePicker
			value={time}
			onChange={setTime}
		/>
	);
};

I am, of course, open to suggestions and pull requests, so feel free to contribute!

Dependents (0)

Package Sidebar

Install

npm i react-time-picker-field

Weekly Downloads

1

Version

1.2.2

License

ISC

Unpacked Size

25.5 kB

Total Files

10

Last publish

Collaborators

  • drafolin