title: How to add an element to Material-UI TablePagination?
body: <p>I'm using Material-UI Table with TablePagination in my project. This is how it appears:</p>
  
  <p><a href="https://i.stack.imgur.com/mooQL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mooQL.png" alt="enter image description here"></a></p>
  
  <p>Now I want the pagination to be aligned to left instead of right, and on the left I want to add another element, for example Button.</p>
  
  <p>I was able to move the alignment to left by restyling the .spacer element. Here's my code:</p>
  
  <pre><code>&lt;TableFooter&gt;
        &lt;TableRow&gt;
          &lt;TablePagination
            rowsPerPageOptions={[5, 10, 25]}
            colSpan={3}
            count={rows.length}
            rowsPerPage={rowsPerPage}
            page={page}
            SelectProps={{
              native: false,
            }}
            onChangePage={this.handleChangePage}
            onChangeRowsPerPage={this.handleChangeRowsPerPage}
            ActionsComponent={TablePaginationActions}
            classes={{spacer: classes.paginationSpacer}} &gt;
          &lt;/TablePagination&gt;
        &lt;/TableRow&gt;
  &lt;/TableFooter&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/88ChF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/88ChF.png" alt="enter image description here"></a></p>
  
  <p>Now I'm trying to add another element. I tried to use <code>action</code> property:</p>
  
  <pre><code>action="&lt;div&gt;Some text&lt;/div&gt;"
  </code></pre>
  
  <p>But that is not even showing. Tried to use</p>
  
  <pre><code>component="&lt;td&gt;Some text&lt;/td&gt;"
  </code></pre>
  
  <p>Got the following error: <code>Warning: validateDOMNesting(...): &lt;&lt;th&gt;Some text&lt;/th&gt;&gt; cannot appear as a child of &lt;tr&gt;.</code> Same thing with div.</p>
  
  <p>Then I tried something like that:</p>
  
  <pre><code>...
  &lt;TableRow&gt;
      &lt;TablePagination
          ...all the props
      &gt;
      &lt;/TablePagination&gt;
      &lt;td&gt;Some text&lt;/td&gt;
  &lt;/TableRow&gt;
  </code></pre>
  
  <p>The text appeared, but it completely scrambled my entire Table:</p>
  
  <p><a href="https://i.stack.imgur.com/yiHiJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yiHiJ.png" alt="enter image description here"></a></p>
  
  <p>And <code>&lt;td&gt;</code> is about the only element that was even showing, since <code>TableRow</code> generates, well, <code>&lt;tr&gt;</code> element.</p>
  
  <p>Any ideas how to insert an element in there?</p>