joshjg / react-canvas-knob

Flexible knob/dial input component
MIT License
44 stars 28 forks source link

Add a prop 'displayCustom' to render custom components in the centre #7

Closed oyeanuj closed 7 years ago

oyeanuj commented 7 years ago

Hi @joshjg! Here is the second of the 3 PRs. I had a usecase of wanting to display icons in the centre, instead of the current value.

So, here is a more generalized solution that is backwards compatible. It hands control to the user, so that they can display what they want, and however they want.

Thank you!

oyeanuj commented 7 years ago

Thanks for the merge! Please do make a release when you get a moment, much appreciated!