react-ui-cards
react-ui-cards copied to clipboard
[WIP] Support for onClick events
WHY
UX design of cards are valuable to visualise content in apps. Cards support a navigation via href to another application context. However, it misses support of actions - do something when user click on card.
WHAT
Proposal to add onClick event for all cards, on click to a
Note: This PR is Work in Progress [WIP]. Just to share the idea at early phase. I'll expand support for other cards and drop dist if you agree with the feature.
This is pretty great. Just a suggestion though, you could make sure to disable the href attribute if onClick is also supplied.