title: React: How to pass width as a prop from the component
body: <p>I am trying to create a component, whose width can be specified wherever the component can be used</p>
  
  <p>Like:       </p>
  
  <pre><code>&lt;Button label="button" width="80%" /&gt;
  
  const TestButton = styled.button`
    color: red;
  `;
  
  var React = require('react');
  
  var Button = React.createClass({
  
  render: function () {
  
  return (
    &lt;TestButton&gt;{this.props.label}&lt;/TestButton&gt;
  );
  }
  });
  
  module.exports = Button;
  </code></pre>
  
  <p>how can I achieve this?</p>