You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, the Calendar modes exist as local state. It would be beneficial to have these modes (or at least their default values) passed down as props. This would allow us to display only the MONTH_PICKER mode or the YEAR_PICKER mode as needed, especially after the Calendar gets exported as a standalone component: #2972.
Describe the solution you'd like
Please add a default mode prop to the Calendar component. This prop should allow setting the calendar modes (DAY_PICKER, MONTH_PICKER, YEAR_PICKER).
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Does your feature request relate to a specific USWDS component?
Yes, it relates to the Calendar component within the DatePicker: https://github.com/trussworks/react-uswds/blob/5307046f9471215b04a9b33f6150ffab8b71aacc/src/components/forms/DatePicker/Calendar.tsx
What USWDS Version is this feature present in?
All versions.
Is your feature request related to a problem? Please describe.
Currently, the Calendar modes exist as local state. It would be beneficial to have these modes (or at least their default values) passed down as props. This would allow us to display only the
MONTH_PICKER
mode or theYEAR_PICKER
mode as needed, especially after the Calendar gets exported as a standalone component: #2972.Describe the solution you'd like
Please add a default mode prop to the Calendar component. This prop should allow setting the calendar modes (DAY_PICKER, MONTH_PICKER, YEAR_PICKER).
Additional context
N/A
The text was updated successfully, but these errors were encountered: