From bbfbb561ffd9288eccbe37b66b5849c32a0694c0 Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Tue, 26 Nov 2024 15:08:37 +0100 Subject: [PATCH] fix: add format to calendar input props --- components/calendar/types/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/calendar/types/index.d.ts b/components/calendar/types/index.d.ts index 5b1d0bb99..cd9864c57 100644 --- a/components/calendar/types/index.d.ts +++ b/components/calendar/types/index.d.ts @@ -33,6 +33,10 @@ export interface CalendarProps { * the direction of the library - internally the library will use rtl for rtl-languages but this can be overridden here for more control */ dir?: CalendarDir + /** + * the date format + */ + format?: 'YYYY-MM-DD' | 'DD-MM-YYYY' /** * any valid locale - if none provided, the internal library will fallback to the user locale (more info here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/hooks/internal/useResolvedLocaleOptions.ts#L15) */