1.1.1 • Published 2 years ago

date-picker-typescript v1.1.1

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

date-picker-typescript

A small datepicker developped with Vite/Typescript and React.

Badges

typescript

Vite

ReactJS

Installation

Install date-picker-typescript with npm

  npm i date-picker-typescript

The datepicker already come with an input.

In order to work it need two variables:

  • yearRange : Use to select the range of years you want for your date picker
  • returnDate : a fonction to catch the date return by the datepicker

Here is the barebone way for it to work :

    const [dateOfBirth, setDateOfBirth] = useState<string>("")
    
    const handleReturnDateBirth = (date: string) => {
		setDateOfBirth(date)
	}

    <DatePicker
		yearRange={{ start: 1960, end: 2005 }}
		returnDate={handleReturnDateBirth}
	/>
1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago