Skip to content

Commit

Permalink
Merge pull request #1641 from dhis2/add-format-to-calendar-input-props
Browse files Browse the repository at this point in the history
fix: add format to calendar input props
  • Loading branch information
flaminic authored Nov 26, 2024
2 parents 5fafaeb + 741fb6c commit a436c4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/calendar/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export interface CalendarProps {
export const Calendar: React.FC<CalendarProps>

export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
CalendarProps
CalendarProps & {
/**
* Optional format for the date. Determines how the date is displayed
* or processed. If not provided it supports both formats
*/
format?: 'YYYY-MM-DD' | 'DD-MM-YYYY'
}

export const CalendarInput: React.FC<CalendarInputProps>

0 comments on commit a436c4f

Please sign in to comment.