Passing props to material UI style

后端 未结 7 563
暗喜
暗喜 2020-12-13 08:41

given card code as in here : card

how can I update the card style or any material UI style as from

    const styles = theme => ({
    card: {
           


        
7条回答
  •  醉酒成梦
    2020-12-13 08:55

    export const renderButton = (tag, method, color) => {
      const OkButton = withStyles({
        root: {
          "color": `${color}`,
          "filter": "opacity(0.5)",
          "textShadow": "0 0 3px #24fda39a",
          "backgroundColor": "none",
          "borderRadius": "2px solid #24fda3c9",
          "outline": "none",
          "border": "2px solid #24fda3c9",
          "&:hover": {
            color: "#24fda3c9",
            border: "2px solid #24fda3c9",
            filter: "opacity(1)",
          },
          "&:active": {
            outline: "none",
          },
          "&:focus": {
            outline: "none",
          },
        },
      })(Button);
      return (
        
          {tag}
        
      );
    };
    
    renderButton('Submit', toggleAlert, 'red')

提交回复
热议问题