title: Vue styling components
body: <p>I have a basic vue  component. It looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  export default {
   props: {
    source: {
     type: String,
     required: true,
    }
   },
  }
  &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;template&gt;
    &lt;div class="imageItem"&gt;
      &lt;img class="image" :data-srcset="source" /&gt;
      &lt;p&gt; this is some text &lt;/p&gt;
    &lt;/div&gt;
  &lt;/template&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What I struggle to achieve is, when I load the component in the parent that looks something like this:</p>
  
  <pre><code>&lt;imageItem :source="source" /&gt;
  </code></pre>
  
  <p>I want to be able to customize the component styles. For example something like this:</p>
  
  <pre><code>&lt;imageItem :source="source" :textColor="red" /&gt;
  </code></pre>
  
  <p>I'm guessing I should do it with props also but its not working as expected. </p>
  
  <p>Can someone share a proper way to do this ?</p>