title: How to enlarge the SVG icon in material-ui iconButtons?
body: <p>Has anyone build webpages using <a href="https://facebook.github.io/react/" rel="noreferrer">react.js</a> and the <a href="https://www.material-ui.com/" rel="noreferrer">Material UI</a> library? How should I resize the icon size? It is a svg icon.
  I just built an "create new" component, which is a piece of material paper with a content add button on the top. Here is the code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react';
  import Paper from 'material-ui/lib/paper';
  import ContentAdd from 'material-ui/lib/svg-icons/content/add';
  import IconButton from 'material-ui/lib/icon-button';
  
  
  const styleForPaper = {
    width: '96vw',
    height: '20vh',
    margin: 20,
    textAlign: 'center',
    display: 'inline-block',
  };
  
  const styleForButton = {
    'marginTop': '7vh',
  };
  
  
  const PaperToAddNewWidgets = () =&gt; (
    &lt;div&gt;
  
      &lt;Paper style={styleForPaper} zDepth={2}&gt;
  
      &lt;IconButton
          style={styleForButton}
          touch={true}
          tooltip="Add New Widget"&gt;
  
      &lt;ContentAdd/&gt;
  
      &lt;/IconButton&gt;
  
      &lt;/Paper&gt;
    &lt;/div&gt;
  );
  
  export default PaperToAddNewWidgets;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It looks OK (make sure you are viewing it at full size), but the icon is too small. Then I opened the chrome dev tool, and saw the following html code. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div style="background-color:#ffffff;transition:all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;box-sizing:border-box;font-family:Roboto, sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0 3px 10px rgba(0,0,0,0.16),
           0 3px 10px rgba(0,0,0,0.23);border-radius:2px;width:96vw;height:20vh;margin:20px;text-align:center;display:inline-block;mui-prepared:;" data-reactid=".0.2.0.1.0"&gt;&lt;button style="border:10px;background:none;box-sizing:border-box;display:inline-block;font:inherit;font-family:Roboto, sans-serif;tap-highlight-color:rgba(0, 0, 0, 0);cursor:pointer;text-decoration:none;outline:none;transform:translate3d(0, 0, 0);position:relative;transition:all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;padding:12px;width:48px;height:48px;font-size:0;margin-top:7vh;mui-prepared:;-webkit-appearance:button;" tabindex="0" type="button" data-reactid=".0.2.0.1.0.0"&gt;&lt;div data-reactid=".0.2.0.1.0.0.0"&gt;&lt;span style="height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden;mui-prepared:;" data-reactid=".0.2.0.1.0.0.0.0"&gt;&lt;/span&gt;&lt;div style="position: absolute; font-family: Roboto, sans-serif; font-size: 14px; line-height: 32px; padding: 0px 16px; z-index: 3000; color: rgb(255, 255, 255); overflow: hidden; top: -10000px; border-radius: 2px; opacity: 0; left: -44px; transition: top 0ms cubic-bezier(0.23, 1, 0.32, 1) 450ms, transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; box-sizing: border-box; -webkit-user-select: none;" data-reactid=".0.2.0.1.0.0.0.1:0"&gt;&lt;div style="position: absolute; left: 50%; top: 0px; transform: translate(-50%, -50%); border-radius: 50%; transition: width 0ms cubic-bezier(0.23, 1, 0.32, 1) 450ms, height 0ms cubic-bezier(0.23, 1, 0.32, 1) 450ms, backgroundColor 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; width: 0px; height: 0px; background-color: transparent;" data-reactid=".0.2.0.1.0.0.0.1:0.0"&gt;&lt;/div&gt;&lt;span style="position:relative;white-space:nowrap;mui-prepared:;" data-reactid=".0.2.0.1.0.0.0.1:0.1"&gt;Add New Widget&lt;/span&gt;&lt;/div&gt;&lt;svg style="display:inline-block;height:24px;width:24px;transition:all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;fill:rgba(0, 0, 0, 0.87);mui-prepared:;-webkit-user-select:none;" viewBox="0 0 24 24" data-reactid=".0.2.0.1.0.0.0.1:2:$/=10"&gt;&lt;path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" data-reactid=".0.2.0.1.0.0.0.1:2:$/=10.0"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Using chrome dev tool, I revised the svg icon size and the viewbox property of svg and made the icon larger in browser. But I am not sure how I can resize the icon size in my code. If I write a CSS file to revise the svg it will be problematic if there are more than one svg elements. </p>