<?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: TheComputerM</title>
    <description>The latest articles on DEV Community by TheComputerM (@thecomputerm).</description>
    <link>https://dev.to/thecomputerm</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%2F408627%2F782e72e0-0029-487c-a997-2c27f4c4ab92.png</url>
      <title>DEV Community: TheComputerM</title>
      <link>https://dev.to/thecomputerm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thecomputerm"/>
    <language>en</language>
    <item>
      <title>How to create Item and Button Groups in Svelte efficiently.</title>
      <dc:creator>TheComputerM</dc:creator>
      <pubDate>Sat, 05 Sep 2020 06:19:55 +0000</pubDate>
      <link>https://dev.to/thecomputerm/how-to-create-item-and-button-groups-in-svelte-efficiently-31b9</link>
      <guid>https://dev.to/thecomputerm/how-to-create-item-and-button-groups-in-svelte-efficiently-31b9</guid>
      <description>&lt;p&gt;You can create button groups with the use of &lt;code&gt;setContext&lt;/code&gt; and &lt;code&gt;getContext&lt;/code&gt; and slots. See the REPL.&lt;/p&gt;

&lt;p&gt;You will get something like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;ButtonGroup&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;Button&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"foo"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Foo
    &lt;span class="nt"&gt;&amp;lt;/Button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;Button&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"bar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Bar
    &lt;span class="nt"&gt;&amp;lt;/Button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;Button&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"baz"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Baz
    &lt;span class="nt"&gt;&amp;lt;/Button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ButtonGroup&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the &lt;a href="https://svelte.dev/repl/7dae7f254a2348d5ad42ad09d84a137f?version=3.24.1"&gt;REPL&lt;/a&gt;&lt;/p&gt;

</description>
      <category>svelte</category>
      <category>uiweekly</category>
      <category>node</category>
      <category>component</category>
    </item>
  </channel>
</rss>
