1.0.4 • Published 3 years ago
react-timepicker-mobile v1.0.4
react-timepicker-mobile
pick times with this component of react
instalation
npm install react-timepicker-mobile
Configuration
- import the styles on your app
import "react-timepicker-mobile/styles.css";
Usage
import the component TimePicker
pass props value and setValue to component...! the color is optional! default is blue
import { useState } from "react";
import { TimePicker } from "react-timepicker-mobile";
export const HomeTemplate = () => {
const [time, setTime] = useState("12:00AM");
return (
<div>
<TimePicker value={time} handleChange={setTime} color="blue" />
</div>
);
};
Avalible Colors
- blue (DEFAULT)
- red
- purple
- indigo
- teal
- green