react-datetime-pickers

React ready picker components for dates and time (month picker, week picker, day picker, range picker)

Usage no npm install needed!

<script type="module">
  import reactDatetimePickers from 'https://cdn.skypack.dev/react-datetime-pickers';
</script>

README

react-datetime-pickers

React ready picker components for dates and time (month picker, week picker, day picker, range picker)

NPM Downloads npm bundle size

Screenshot

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