I want to make a generic component using styled components which will accept the styling properties as props. IN my case it will be a Card which will have title, avatar, name, badge and other stuff.
I want each of the element to have style prop which can be done and that something I know but how do I pass props for hover and active state stylings ?
Sample code: https://codesandbox.io/s/bold-mendel-lismke?file=/src/App.tsx
I want a different background on hover, I've tried but that's not working, how do I achieve that ?
Edit: Also I want to show a different background color when card is clicked and it will remain the same unless the user toggles