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
I'm creating a expiration date input which requires only month and year. But I found out the largest granularity prop of DateField component is 'day', so I wrote this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Env
reka-ui 2.4.0
Description
I'm creating a expiration date input which requires only month and year. But I found out the largest
granularity
prop of DateField component is 'day', so I wrote this:props.segments
looks like[{ part: 'month' }, '/', { part: 'year' }]
This is so inelegant, so I am wondering if there is a better way to create a DateFiled that contains only months and years
Beta Was this translation helpful? Give feedback.
All reactions