Skip to content

drafolin/react-time-picker-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A user-pleasing, yet unstlyed react time picker based on vue datepicker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published