Skip to content

Commit

Permalink
fix: add format to calendar input props
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminic committed Nov 26, 2024
1 parent 624b363 commit bbfbb56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/calendar/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down

0 comments on commit bbfbb56

Please sign in to comment.