How to use the @material-ui/system.spacing function in @material-ui/system

To help you get started, we’ve selected a few @material-ui/system 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 mui-org / material-ui / packages / material-ui-benchmark / src / server.js View on Github external
function renderSpacing(req, res) {
  for (let i = 0; i < 10000; i += 1) {
    spacing({
      theme: {},
      p: [1, 2, 3],
    });
  }

  res.send(renderFullPage('hello', ''));
}

@material-ui/system

Material-UI System - Design system for Material-UI.

MIT
Latest version published 3 years ago

Package Health Score

88 / 100
Full package analysis