gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
5.86k stars 701 forks source link

Style of Range bug - Wrong import in documentation #2150

Closed Vansh-Baghel closed 1 month ago

Vansh-Baghel commented 1 month ago

Description

  1. While using the Range Calender, I found that the styling is not getting implemented. Make it a little more user-friendly, and include the same in installation section if possible.
  2. Main issue, is that even after importing it in React, it says that Failed to resolve import "react-day-picker/style.css" from "src/App.tsx". Does the file exist? Don't need to panic, just change the import statement to the following for React: import "react-day-picker/dist/style.css"

Expected Behavior

Actual Behavior

Screenshots

Before: image

After: image

Your Environment

gpbl commented 1 month ago

Thanks! Fixed it in https://github.com/gpbl/react-day-picker/commit/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d

Vansh-Baghel commented 1 month ago

🔥🚀