#How to use Only Monthly Picker in v5.8

24 messages Β· Page 1 of 1 (latest)

torn skiff
#

I know that there is Monthly Picker in v6 but, Currently I have to use v5.8 mantine.
So, Can I use Only Monthly Picker in v6 or Can I custom date-picker to Monthly Picker?

I will really appreciate to inform me

thanks.

gloomy oyster
#

You can't, mine was using Select component with options of months

torn skiff
gloomy oyster
#

Make your own Select component and handle list of months like this

torn skiff
#

ah.. hmm

#

I'd like to make like this

gloomy oyster
#

If you want to make it like that, you need to create it on your own with Month Component
https://mantine.dev/dates/month/

Most basic date related component, displays given month with optional weekdays row

#

DatePicker component can not pick months only

torn skiff
#

Okay.. I will try it

#

Thanks

gloomy oyster
#

Sorry, I was wrong, month component is for showing dates on a month, not for picking month

#

I guess mantine does not expose MonthPicker component,

thus, you need to create the component from the ground

torn skiff
#

😒

#

Thank you for the explanation

torn skiff
torn skiff
stoic torrent
#

I use the new MonthPickerInput in 5.8 and it works like a charm. πŸ™‚

solemn finch
#

With the MonthPickerInput is there a way to choose a format for the output? e.g. YYYY-mm YYYY-MMM MMM, YYYY etc?

Nevermind - valueFormat={"MMMM, YYYY"} for those coming across this in future

torn skiff
torn skiff
tidal bolt