<?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: Felix Sanchez</title>
    <description>The latest articles on DEV Community by Felix Sanchez (@foxthebox).</description>
    <link>https://dev.to/foxthebox</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%2F910121%2Faad96775-9b69-40c4-8682-68b3c062c80e.jpeg</url>
      <title>DEV Community: Felix Sanchez</title>
      <link>https://dev.to/foxthebox</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/foxthebox"/>
    <language>en</language>
    <item>
      <title>Beautiful and pixel perfect React Icon Library</title>
      <dc:creator>Felix Sanchez</dc:creator>
      <pubDate>Wed, 17 Aug 2022 04:08:00 +0000</pubDate>
      <link>https://dev.to/foxthebox/beautiful-and-pixel-perfect-react-icon-library-4p71</link>
      <guid>https://dev.to/foxthebox/beautiful-and-pixel-perfect-react-icon-library-4p71</guid>
      <description>&lt;p&gt;React Iconly - Based on Iconly v2 icons&lt;/p&gt;

&lt;p&gt;One of the phases in which we invest more time when we are developing or designing a web or mobile application is in choosing the icon pack that best suits the brand and what we want to convey, even creating our own set of icons if none of them fits or we want it to be unique and identify your brand.&lt;/p&gt;

&lt;p&gt;Iconly is one of the options that is being used by designers and developers today, so I decided to create a library for React / Next.js / Gatsby that facilitates its use and that also allows us to customize any icon according to our needs.&lt;/p&gt;

&lt;p&gt;Integrating into your project is quite simple just by following these steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;yarn add react-iconly&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install react-iconly&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Usage&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import { Home } from 'react-iconly';

const App = () =&amp;gt; {
  return &amp;lt;Home /&amp;gt;
};

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also wrap your app inside an IconlyProvider component, this will make all the icons that are within the context use the Provider properties&lt;/p&gt;

&lt;p&gt;If you set specific props for each Icon the Provider properties will be overwritten&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import { IconlyProvider, Home, Notification } from 'react-iconly';

const App = () =&amp;gt; {
  return (
    &amp;lt;IconlyProvider set="bulk" primaryColor="blueviolet" secondaryColor="blue" stroke="bold" size="xlarge"&amp;gt;
      &amp;lt;Home /&amp;gt;
      &amp;lt;Notification primaryColor="yellow" /&amp;gt;
    &amp;lt;/IconlyProvider&amp;gt;
  )
};

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Home set="two-tone" primaryColor="blueviolet" secondaryColor="blue" stroke="bold" size="xlarge"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also include the whole icon pack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import * as Iconly from 'react-iconly';

const App = () =&amp;gt; {
  return &amp;lt;Iconly.Home set="bulk" primaryColor="blueviolet" secondaryColor="blue" stroke="bold" size="xlarge"/&amp;gt;
};

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Custom style example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import { Send } from 'react-iconly';

const App = () =&amp;gt; {
  return &amp;lt;Send style={{ transform: 'rotate(45deg)' }} primaryColor="red" stroke="bold" size="xlarge"/&amp;gt;
};

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the repo &lt;a href="https://github.com/foxthebox/Iconly-React"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
