aboveyunhai / chakra-dayzed-datepicker

Chakra UI + Dayzed = datepicker
https://aboveyunhai.github.io/chakra-dayzed-datepicker/
MIT License
222 stars 46 forks source link

Add custom date button renderer and event handlers (month change, popover open) #34

Open mbednarik opened 1 year ago

mbednarik commented 1 year ago

Closes https://github.com/aboveyunhai/chakra-dayzed-datepicker/issues/33

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
chakra-dayzed-datepicker ❌ Failed (Inspect) Nov 22, 2022 at 0:23AM (UTC)
mbednarik commented 1 year ago

Hi @aboveyunhai, is the failed deployment something I can help you fix or is the problem not on my side? Thanks

aboveyunhai commented 1 year ago

Hi @aboveyunhai, is the failed deployment something I can help you fix or is the problem not on my side? Thanks

nope, it's related to the example folder deployment experiment I did. Expect to fail since the idea won't work. Nothing to do with the code.

mbednarik commented 1 year ago

Ok, thank you @aboveyunhai. Is there something else you need from me in order to get this merged?

aboveyunhai commented 1 year ago

Ok, thank you @aboveyunhai. Is there something else you need from me in order to get this merged?

I was thinking about something flexible based on the need of this PR without introducing a new prop. The PR might not be merged but the idea and credit will stay here.

Something like but inserting location will be a big challenge, and it might backstab my own foot.

<Datepicker>
    <YourComponent />
</Datepicker>
//or 
<Datepicker>
    {(internalProps) => <YourComponent {you can something with the internal props}/>}
</Datepicker>
AdsMenezes commented 1 year ago

Add the ability to pass a prop ref to the input.