How to use the @mui-treasury/styles/grid.useHalfBorderedGridStyles function in @mui-treasury/styles

To help you get started, we’ve selected a few @mui-treasury/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 siriwatknp / mui-treasury / src / docs / components / grid / halfBordered / HalfBorderedGrid.js View on Github external
const HalfBorderedGrid = () => {
  const colWidth = { xs: 12, sm: 6, md: 4, lg: 3 };
  const borderColor = 'secondary.main';
  const styles = useHalfBorderedGridStyles({ borderColor, colWidth });
  return (
    
      
        {Array(6)
          .fill(0)
          .map((number, i) => (
            // eslint-disable-next-line react/no-array-index-key
            
              
            
          ))}
      
    
  );
};
github siriwatknp / mui-treasury / website / src / components / organisms / CustomComponentGrid.js View on Github external
const useGridProps = size => {
  const GridItemProps = columnConfig[size];
  return {
    gridStyles: useHalfBorderedGridStyles({
      borderColor: '#e9e9e9',
      colWidth: GridItemProps,
    }),
    GridItemProps,
  };
};