From a42d8a21cc03913e3a37679872a7d9cf68bd52a4 Mon Sep 17 00:00:00 2001 From: ethandaniel Date: Mon, 8 May 2023 14:59:11 -0400 Subject: [PATCH] Adds ability to justify calendar --- src/components/Datepicker.tsx | 7 +++++-- src/components/utils.tsx | 6 +++++- src/types/index.ts | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/Datepicker.tsx b/src/components/Datepicker.tsx index e4bef65..581c0bd 100644 --- a/src/components/Datepicker.tsx +++ b/src/components/Datepicker.tsx @@ -40,7 +40,8 @@ const Datepicker: React.FC = ({ inputName, startWeekOn = "sun", classNames = undefined, - popoverDirection = undefined + popoverDirection = undefined, + justifyCalendar = "start" }) => { // Ref const containerRef = useRef(null); @@ -318,7 +319,9 @@ const Datepicker: React.FC = ({