1.2.1 • Published 2 years ago

datepicker-react-by-badbmo v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

A date picker component for your react project

A simple react datepicker to add to your react projects.

Installation

Install the component

  • Use yarn or npm to install the component.
#yarn
yarn add datepicker-react-by-badbmo
#npm
npm i datepicker-react-by-badbmo

Add it to your project

  • Import the date picker in your React app:
import DatePicker from "datepicker-react-by-badbmo"

How to use it ?

ParamTypeNameUseExample
1stringidInputto set the id of input and for of label"date-of-birth"
2stringnameOfLabelto set the name displayed in label"Date of Birth"
3functiongetSelectedDatefunction to get the selected date value in a Date formatconst exampleOfFunction = (date) => {return console.log(date);};

Need an example ?

Go to the github to see a live version of this component.

Happy coding ! :)

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago