This custom shadcn component aims to provide a more advanced alternative to the default date picker component. It is built on top of the react-day-picker library, which provides a wide range of customization options.
Furthermore, it allows usage with react-day-picker version 9, which is not compatible with the current shadcn date picker component.
In the demo above, notice that you can click on the month label at the top to change the view to years.

Installing

Install the Date Picker using the shadcn cli.
pnpm dlx shadcn@latest add https://date-picker.luca-felix.com/r/date-picker.json

Usage