1.1.1 • Published 10 months ago

date-picker-typescript v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
10 months 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

10 months ago

1.1.0

11 months ago

1.0.0

11 months ago

0.1.0

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.0

11 months ago