react-select-datepicker
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

react-select-datepicker

A simple and reusable dropdown datepicker component for React (Demo)

NPM npm bundle size GitHub contributors npm NPM

Select Datepicker

Install

npm install --save react-select-datepicker

Usage

import React, { useState, useCallback } from 'react';
import { SelectDatepicker } from 'react-select-datepicker';

export const App = () => {
  const [value, setValue] = useState<Date | null>();

  const onDateChange = useCallback((date: Date) => {
    setValue(date);
  }, []);

  return (
    <SelectDatepicker
      selectedDate={value}
      onDateChange={onDateChange}
    />
  );
};

License

MIT © JMcAmmond

Package Sidebar

Install

npm i react-select-datepicker

Weekly Downloads

552

Version

2.1.2

License

MIT

Unpacked Size

15.5 kB

Total Files

16

Last publish

Collaborators

  • deathspuz