DateRangePicker is a reusable component for shadcn using Radix UI and Tailwind CSS. Includes preset date ranges, text entry, calendar selection and date comparison
The DateRangePicker is a reusable component built for Shadcn. It is designed using components from Radix UI and Tailwind CSS. This component provides a dropdown interface that allows users to select or enter a range of dates. It also includes additional options such as preset date ranges and an optional date comparison feature.
To install the DateRangePicker component, you will need to have the following components from Shadcn: Button, Calendar, Label, Popover, and Switch.
If you are using the CLI for installation, you can follow these steps:
The DateRangePicker is a reusable component for Shadcn that provides a dropdown interface for selecting or entering a range of dates. It offers additional features such as preset date ranges and a date comparison option. Installing the component involves installing Radix UI and copying the code into your project.