I got the following component:
const FeedCardButton = props => {
return(
<button
type="button"
style={{backgroundColor: props.color,
filter: props.filter}}
className="feed-card-button">{props.title}</button>
);
}
Now I want to add a gradient as a background to my component, but it doesn't work this way:
<FeedCardButton
title="heyhey"
color="-moz-linear-gradient(top, #34ac1a 0%, #84cd89 100%), -webkit-linear-gradient(top, #34ac1a 0%, #84cd89 100%),linear-gradient(to bottom, #34ac1a 0%,#84cd89 100%)"
filter="progid:DXImageTransform.Microsoft.gradient( startColorstr='#34ac1a', endColorstr='#84cd89',GradientType=0 );"></FeedCardButton>
What can I do?