<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Phil Pond</title>
    <description>The latest articles on DEV Community by Phil Pond (@phil_pond_02291f9d8b6bd06).</description>
    <link>https://dev.to/phil_pond_02291f9d8b6bd06</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3735911%2Ff62f9e5b-6bf4-4db4-a934-e4184dbee780.png</url>
      <title>DEV Community: Phil Pond</title>
      <link>https://dev.to/phil_pond_02291f9d8b6bd06</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phil_pond_02291f9d8b6bd06"/>
    <language>en</language>
    <item>
      <title>VueJS, Component Name as Prop?</title>
      <dc:creator>Phil Pond</dc:creator>
      <pubDate>Thu, 12 Mar 2026 19:24:39 +0000</pubDate>
      <link>https://dev.to/phil_pond_02291f9d8b6bd06/vuejs-component-name-as-prop-2k0m</link>
      <guid>https://dev.to/phil_pond_02291f9d8b6bd06/vuejs-component-name-as-prop-2k0m</guid>
      <description>&lt;p&gt;Hi! Pretty new to vuejs.&lt;/p&gt;

&lt;p&gt;Just wondering... I'm starting a project with some very simple components that don't do a whole lot; but they're wrappers to help keep things consistent. In some cases, adding a prop, when it might be the only one seems a bit wordy. Take a label, for instance:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Label text="Here's My Text"/&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;works fine.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Label&amp;gt;Here's My Text&amp;lt;/Label&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;also OK. But (slot) has no guardrails on what can go in.&lt;/p&gt;

&lt;p&gt;What I'd really like is something like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Label="Here's My Text"/&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Is it possible? And are there reasons that it should not be done?&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>frontend</category>
      <category>javascript</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
