Skip to content

Simple React / NextJs datepicker component, without usage of libraries.

Notifications You must be signed in to change notification settings

svilkic/next-datepicker

Repository files navigation

Simple react/nextjs datepicker component that doesn't use any library

React date-picker component that doesn't use any library, created using custom hook, and few functions. Implemented in nextjs but can be used in react project. Still needs to be tested.

DEMO

Video Example

Datepicker Example Video

Instructions:

1. git clone https://github.com/svilkic/next-datepicker.git

2. npm install

3. npm run dev

4. (otpional) Change /constants/dates.js to other language if needed.

5. (optional) Change primary color in styles/globals.css,

TODO:

  • Add functionality when clcik on day of previous/next date to automaticaly switch to that month (instead of switching to next month and then chosing day)
  • Make current date border
  • Make it more responsive.
  • Test component fully

Releases

No releases published

Packages

No packages published