1.0.3 • Published 3 years ago

react-day-select v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

npm downloads

React-Date-Select

A simple and reusable Datepicker component for React (Demo)

Installation

The package can be installed via npm:

npm i react-day-select --save

Or via yarn:

yarn add react-day-select

Usage

Here's an example of basic usage:

import React, { useState } from 'react';
import DatePicker from 'react-day-select';

function MyDatePicker() {

  return (
    <div>
      <DatePicker
        bgColor='#435EBE'
        onChange={(e)=>console.log(e)}
        format="MM-DD-YYYY"
      />
    </div>
  );
}
Prop nameDescriptionDefault valueExample values
bgColorbackground color of head possition#2b7479'red, 'green', '#2b7479' etc.
onChangeTigger when a day is selecteemptyAugust-05-1993
formatformat of the outputAugust 05 1993MM-DD-YYYY mm-dd-yyyy DD-MM-YYYY

License

The MIT License.

Author

Thank you

Thank you to all Please save Water and River

Water, water everywhere but not a drop to drink.

A drop of water is worth more than a sack of gold to a thirsty man.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago