title: material ui: reactjs: Grid how to add margin
body: <p>I have the following Grid in material-ui reactjs</p>
  <pre><code>    &lt;Grid container direction=&quot;row&quot; justify=&quot;flex-end&quot; alignItems=&quot;center&quot;&gt;
        &lt;Grid item&gt;
          &lt;Paper&gt;
            test
          &lt;/Paper&gt;
        &lt;/Grid&gt;
        &lt;Grid item&gt;
          &lt;Paper&gt;
            test
          &lt;/Paper&gt;
        &lt;/Grid&gt;
      &lt;/Grid&gt;
      &lt;Grid container&gt;
        &lt;Grid item xs&gt;
          &lt;Paper&gt;
            testing
          &lt;/Paper&gt;
        &lt;/Grid&gt;
      &lt;/Grid&gt;
  </code></pre>
  <p>It shows as</p>
  <p><a href="https://i.stack.imgur.com/g2MpL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g2MpL.png" alt="enter image description here" /></a></p>
  <p>Now i want some gap between the two containers.</p>
  <p>I tried</p>
  <pre><code>    &lt;Grid container direction=&quot;row&quot; justify=&quot;flex-end&quot; alignItems=&quot;center&quot;&gt;
        &lt;Grid item&gt;
          &lt;Paper&gt;
            test
          &lt;/Paper&gt;
        &lt;/Grid&gt;
        &lt;Grid item&gt;
          &lt;Paper&gt;
            test
          &lt;/Paper&gt;
        &lt;/Grid&gt;
      &lt;/Grid&gt;
      &lt;Grid container m={2}&gt;
        &lt;Grid item xs&gt;
          &lt;Paper&gt;
            testing
          &lt;/Paper&gt;
        &lt;/Grid&gt;
      &lt;/Grid&gt;
  </code></pre>
  <p>Still i get the same</p>
  <p><a href="https://i.stack.imgur.com/0idaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0idaW.png" alt="enter image description here" /></a></p>