react-datetime-pickers
v1.1.2
Published
React ready picker components for dates and time (month picker, week picker, day picker, range picker)
Downloads
283
Maintainers
Readme
react-datetime-pickers
React ready picker components for dates and time (month picker, week picker, day picker, range picker)
Install
npm install --save react-datetime-pickers
or
yarn install react-datetime-pickers
Usage
import React, {useState} from 'react';
import { DateTimePicker } from 'react-datetime-pickers';
import 'react-datetime-pickers/dist/index.css';
export default function Example() {
const [date, setDate] = useState(new Date());
return (
<DateTimePicker
selected={date}
onChange={setDate}
/>
);
}
License
MIT © mauriziocarella