Enable styles for buttons as well as enable disabling and enabling buttons
Sorry for the hassle of making one pull request to all features, but thought it would make sense.
I am currently working on a project and found out that I need to disable the increment and decrement buttons when the user reaches the max or min values specified.
Therefore, the following was done:
1- add expected props to the typescript interface following a previous name convention used with the icon styles
2- change the style prop on the increment and decrement to be an array
3- spread the upcoming props that are related to the button styles if true other wise just use {}
4- add a disabled prop to the buttons
5- write a condition inside the disabled prop that checks if the max/min reached as well if the user passed the disablers props disableIncButtonOnMaxReach and disableDecButtonOnMaxReach
Happy to make any necessary changes after reviewing
Cool, thanks! If you still wish to merge this, please add the new props to README
Thanks a lot for your contribution!
Hi, yes please merge it i have updated the README, revised the code, as well as fixed a typo in the types file.
@himelbrand can you please merge this pull request?
I'll review it this weekend, I missed the notification sorry