I think using children and callBack are 2 good ideas, as it allows a lot of flexibility around the component.
Right now, the button is pretty much styled for one context only, which totally defeats reusability.
Using css as props would probably make things easier, but I wonder if it works well in the long run.
Should I always give the component CSS to consume or should I create different types of Buttons? Like stealthyButton? Also, is a button the best html element to be used in the current situation?
I think using children and callBack are 2 good ideas, as it allows a lot of flexibility around the component.
Right now, the button is pretty much styled for one context only, which totally defeats reusability. Using css as props would probably make things easier, but I wonder if it works well in the long run.
Should I always give the component CSS to consume or should I create different types of Buttons? Like
stealthyButton
? Also, is a button the best html element to be used in the current situation?🤔
Originally posted by @beaucouplus in https://github.com/beaucouplus/calendar/pull/9