How to use the @material-ui/styles/withStyles function in @material-ui/styles

To help you get started, we’ve selected a few @material-ui/styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexanmtz / material-sense / src / components / buttons / ButtonBar.js View on Github external
>
          Delete
        
        <button color="primary">
          Edit
        </button>
      
    )
  }
}

export default withStyles(styles)(ButtonBar);
github mui-org / material-ui-pickers / lib / src / DatePicker / components / SlideTransition.tsx View on Github external
children={children}
        classNames={transitionClasses}
      /&gt;
    
  );
};

(SlideTransition as any).propTypes = {
  children: PropTypes.node.isRequired,
  className: PropTypes.string,
  slideDirection: PropTypes.oneOf(['left', 'right']).isRequired,
  transKey: PropTypes.string.isRequired,
  innerRef: PropTypes.any,
};

export default withStyles(styles, {
  name: 'MuiPickersSlideTransition',
})(SlideTransition);
github worknenjoy / ahorta-client / src / components / Signup.js View on Github external
)
  }
}
export default withRouter(withStyles(styles)(Signup))
github alexanmtz / material-sense / src / components / dialogs / InstructionDialog.js View on Github external
This is a sample introduction
          
        
        <button color="primary">
          Getting started
        </button>
        <button color="primary">
          Dashboard
        </button>
      
    )
  }
}

export default withRouter(withStyles(styles)(InstructionDialog));
github alexanmtz / material-sense / src / components / Wizard.js View on Github external
disabled={this.state.activeStep === 3 &amp;&amp; !this.state.termsChecked}
                    &gt;
                      {this.stepActions()}
                    
                  
                
              
            
          
        
      
    )
  }
}

export default withRouter(withStyles(styles)(Wizard));
github bluepeter / gatsby-material-ui-business-starter / src / components / List.js View on Github external
/&gt;
              
                
                  {title}
                
                {excerpt}
              
            
          
        );
      })}
    
  );
};

export default withStyles(styles)(List);
github alexanmtz / material-sense / src / components / Topbar.js View on Github external
{Menu.map((item, index) =&gt; (
                            
                          ))}
                        
                      
                    
                  )}
              
            
        
      
    )
  }
}

export default withRouter(withStyles(styles)(Topbar))
github bluepeter / gatsby-material-ui-business-starter / src / pages / index.js View on Github external
path
            title
            date(formatString: "DD MMMM YYYY")
          }
          excerpt
        }
      }
    }
  }
`;

Home.propTypes = {
  classes: PropTypes.object.isRequired,
};

export default withRoot(withStyles(styles)(Home));
github alexanmtz / material-sense / src / components / dialogs / SwipeDialog.js View on Github external
{tutorialSteps[activeStep].description}
            
          
          <div>
            <button color="primary">
                Getting started
            </button>
          </div>
        
      
    )
  }
}

export default withRouter(withStyles(styles)(SwipeDialog));
github jeffshek / writeup-frontend / src / components / TopbarComponent / Topbar.js View on Github external
className={classes.rightGridContainer}
              &gt;
                {this.renderRightContainer()}
              
            
          
        
      
    );
  }
}

_TopbarComponent.defaultProps = {};

export const TopbarComponent = withRouter(
  withStyles(TopbarStyles)(_TopbarComponent)
);