react-ui-cards icon indicating copy to clipboard operation
react-ui-cards copied to clipboard

[WIP] Support for onClick events

Open fogfish opened this issue 6 years ago • 1 comments

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.

fogfish avatar Mar 02 '19 10:03 fogfish

This is pretty great. Just a suggestion though, you could make sure to disable the href attribute if onClick is also supplied.

nukeop avatar Mar 02 '19 17:03 nukeop