almond-bongbong / react-slot-counter

🚀 Elevate Your UI with Dynamic, Eye-Catching Counters
https://almond-bongbong.github.io/react-slot-counter/
112 stars 12 forks source link

`valueClassName` support to `renderDummyList` for enhanced styling flexibility #38

Closed daeseong9388 closed 5 months ago

daeseong9388 commented 6 months ago

I'm currently trying to implement a text gradient effect using background-clip: text. However, this effect needs to be applied within the container of the text itself.

image image

https://github.com/almond-bongbong/react-slot-counter/blob/0e21537c4f74968686d6fe5347e02572cc1aa313/src/components/Slot.tsx#L147C6-L158C14

I would like to request the enhancement of the renderDummyList function to accept an additional className prop. This would allow for individual styling of the dummy list items, similar to how valueClassName is used for the main value elements.

Thank you for considering this feature request. I appreciate the work that has been put into the this project and am looking forward to possibly contributing to its further development with this enhancement.

almond-bongbong commented 6 months ago

Thank you for your suggestion. This feature seems relatively straightforward to implement and could be beneficial across various use cases. We will work on adding this enhancement promptly.

Thank you once again for your proposal.

daeseong9388 commented 6 months ago

Thank you for the prompt response and for considering the addition of this feature!! 👍

almond-bongbong commented 6 months ago

Version 2.3.0 now includes the numberSlotClassName and numberClassName props. Please check to see if this update addresses your needs, and don't hesitate to let us know if there's anything more you require.