title: Material UI: Give TableBody a max height and make it vertically scrollable
body: <p>Using Material UI, I want the TableBody of my Table to have a max height of 500px. If there are any rows that cannot fit within the height of the TableBody then the TableBody should vertically scroll while the TableHead locks in place (frozen).</p>
  
  <p><a href="https://i.stack.imgur.com/TRHJB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TRHJB.png" alt="enter image description here"></a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>import React from "react";
  import Table from '@material-ui/core/Table';
  import TableBody from '@material-ui/core/TableBody';
  import TableCell from '@material-ui/core/TableCell';
  import TableHead from '@material-ui/core/TableHead';
  import TableRow from '@material-ui/core/TableRow';
  
  const data = ["1", "1","1","1","1","1","1","1","1","1","1","1","1","1"];
  
  class Demo extends React.Component {
    render() {
      return (
        &lt;div&gt;
          &lt;Table&gt;
            &lt;TableHead&gt;
              &lt;TableRow style={{ 'backgroundColor': '#f5f5f5', "height": '35px' }}&gt;
                &lt;TableCell&gt;Column 1&lt;/TableCell&gt;
                &lt;TableCell&gt;Column 2&lt;/TableCell&gt;
                &lt;TableCell&gt;&lt;/TableCell&gt;
              &lt;/TableRow&gt;
            &lt;/TableHead&gt;
            &lt;TableBody&gt;
              {data.map(n =&gt; {
                return (
                  &lt;TableRow key={n}&gt;
                    &lt;TableCell&gt;{n}&lt;/TableCell&gt;
                    &lt;TableCell&gt;{n}&lt;/TableCell&gt;
                  &lt;/TableRow&gt;
                );
              })}
            &lt;/TableBody&gt;
          &lt;/Table&gt;
        &lt;/div&gt;
      );
    }
  }
  
  export default Demo;
  </code></pre>
  
  <p>Working example: <a href="https://codesandbox.io/s/y03vmkkkqj" rel="noreferrer">https://codesandbox.io/s/y03vmkkkqj</a></p>
  
  <p>How can this be done in Material UI?</p>
  
  <p>Please fork from my example and provide link to a working solution.</p>