title: How to increase css specificity of class attribute passed in Styled Components?
body: <p>Good day,</p>
  <p>I have a styled component named &quot;GridDropDownItem&quot; where i am taking class name through props and it has its own css properties as well.</p>
  <p>Styled Component:</p>
  <pre><code>const GridDropDownItem = styled.div.attrs&lt;{ class: string }&gt;(props =&gt; ({
      className: props.class //here i am taking class name
  })) &lt;{ class: string }&gt;`
      width: 180px;
      height: 100px;
      border-radius: 4px;
  `;
  </code></pre>
  <p>In Render:</p>
  <pre><code>&lt;GridDropDownItem class={itemClass ? itemClass : ''}&gt;&lt;/GridDropDownItem&gt;
  </code></pre>
  <p>The problem is when I pass itemClass with width and height properties, it is getting overwritten. How can i tackle this situation?</p>
  <p>Screenshot:
  <a href="https://i.stack.imgur.com/w02So.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w02So.png" alt="enter image description here" /></a></p>
  <p>Any suggestion would be appreciated.</p>