Install the DateRangePicker component
mainThe DateRangePicker is a reusable component built for Shadcn using Radix UI and Tailwind CSS. To use it, you must first install the required Shadcn UI components and the Radix UI icons library.
- Install Shadcn dependencies using the CLI:
npx shadcn-ui@latest add button calendar label popover switch- Install Radix UI icons:
npm install @radix-ui/react-icons- Copy source files: Copy the code from the
/srcdirectory forDateInputandDateRangePickerinto your project. The code is provided for you to customize as needed.