How to use the @mui-treasury/styles.usePushingGutter 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 / website / src / docs / components / button / github / GithubBtn.js View on Github external
const GithubButton = () => {
  const styles = useGithubBtnStyles();
  const gutterStyles = usePushingGutter();
  return (
    <div>
      <button>
        Default
      </button>
      <button color="{'primary'}">
        Contained
      </button>
    </div>
  );
};
github siriwatknp / mui-treasury / website / src / docs / components / button / default / MuiButton.js View on Github external
const MuiButton = () =&gt; {
  const gutterStyles = usePushingGutter({
    cssProp: 'margin',
    space: [2, 2, 0, 0],
  });
  return (
    <div>
      <button>Simple Text</button>
      <button color="{'primary'}">
        Contained
      </button>
      <button color="{'secondary'}">
        Outlined
      </button>
    </div>
  );
};
github siriwatknp / mui-treasury / website / src / docs / components / button / gradient / GradientBtn.js View on Github external
const GradientBtn = () =&gt; {
  const styles = useGradientBtnStyles();
  const chubbyStyles = useGradientBtnStyles({ chubby: true });
  const gutterStyles = usePushingGutter({ cssProp: 'marginBottom', space: 2 });
  return (
    <div>
      <div>
        <button>Default</button>
      </div>
      <div>
        <button>Chubby</button>
      </div>
    </div>
  );
};
github siriwatknp / mui-treasury / website / src / docs / components / button / twitter / TwitterBtn.js View on Github external
const TwitterButton = () =&gt; {
  const styles = useTwitterBtnStyles();
  const mainStyles = usePushingGutter({
    cssProp: 'marginTop',
    space: 2,
    firstExcluded: true,
  });
  const wrapperStyles = usePushingGutter();
  return (
    <div>
      <div>
        <button color="{'primary'}">
          Normal
        </button>
        <button size="{'large'}" color="{'primary'}">
          Large Button
        </button>
      </div>
      <div></div></div>
github siriwatknp / mui-treasury / website / src / docs / components / button / twitter / TwitterBtn.js View on Github external
const TwitterButton = () =&gt; {
  const styles = useTwitterBtnStyles();
  const mainStyles = usePushingGutter({
    cssProp: 'marginTop',
    space: 2,
    firstExcluded: true,
  });
  const wrapperStyles = usePushingGutter();
  return (
    <div>
      <div>
        <button color="{'primary'}">
          Normal
        </button>
        </div></div>