How to use the @material-ui/styles.withTheme 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 worknenjoy / ahorta-client / src / components / SimpleLineChart.js View on Github external
import { withTheme } from '@material-ui/styles';

function SimpleLineChart(props) {
  const { theme, data, threshold } = props;
  return (
    
      
        
        
        
      
    
  );
}

export default withTheme(SimpleLineChart);

// 
github codexstanford / techlist-frontend-web / src / apps / admin / routes / company / location.js View on Github external
name="location"
        label="Company Location"
        type="text"
        component={TextField}
        fullWidth
        InputProps={{
          inputRef: ref,
          ...InputProps,
        }}
        {...other}
      />
    
  );
}

export default withTheme(GoogleEnhancedAutocomplete);
github codexstanford / techlist-frontend-web / src / apps / admin / features / company.create / components / location / address.js View on Github external
name="location"
        label="Company Location"
        type="text"
        component={TextField}
        fullWidth
        InputProps={{
          inputRef: ref,
          ...InputProps,
        }}
        {...other}
      />
    
  );
}

export default withTheme(GoogleEnhancedAutocomplete);
github ETCDEVTeam / emerald-wallet / packages / react-app / src / layout / Header / Title.tsx View on Github external
import { withTheme } from '@material-ui/styles';
import * as React from 'react';

const EmeraldTitle = ({ theme }: {theme: any}) => {
  return (
    <div style="{{">
      <span style="{{">Emerald </span>
      <span style="{{">Wallet</span>
    </div>
  );
};

export default withTheme(EmeraldTitle);
github ETCDEVTeam / emerald-wallet / packages / ui / src / components / layout / Header / Status / NetworkSelector.tsx View on Github external
anchorEl={anchorEl}
          onClose={this.handleClose}
        &gt;
          {blockchains.map((net) =&gt; )}
        
      
    );
  }
}

export default withStyles(selectorStyles)(withTheme(NetworkSelectorRender));
github mui-org / material-ui / docs / src / pages / styles / advanced / WithTheme.js View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider, withTheme } from '@material-ui/styles';

function DeepChildRaw(props) {
  return <span>{`spacing ${props.theme.spacing}`}</span>;
}

DeepChildRaw.propTypes = {
  theme: PropTypes.shape({
    spacing: PropTypes.string.isRequired,
  }).isRequired,
};

const DeepChild = withTheme(DeepChildRaw);

function WithTheme() {
  return (
    
      
    
  );
}

export default WithTheme;
github Digiturk / wface / packages / components / src / layouts / w-tabs / index.tsx View on Github external
return (
       {          
          if (!props.visible) {
            return null;
          }
          const icon = props.direction === 'left' ? 'chevron_left' : 'chevron_right';
          return 
        }}
        {...tabsProps}        
      /&gt;
    )
  }
}
export const WTabs = withTheme(WTabsInner);
export * from './w-tab';
github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.store.feature / src / main / resources / devportal / source / src / app / components / Apis / Listing / ApiTableView.jsx View on Github external
return ;
        }
        if ((data &amp;&amp; data.length === 0) || !data) {
            return ;
        }
        return (
            
                
            
        );
    }
}

ApiTableView.contextType = ApiContext;

export default withSettings(injectIntl(withTheme(withStyles(styles)(ApiTableView))));