🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react-devicon

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-devicon

React Devicon is a React implementation of the Devicon package, a library that contains the logos of several programming languages and libraries, as well as of different design and development tools.

Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
71
-5.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Devicon

https://fpoumian.github.io/react-devicon/

React Devicon is a React implementation of the Devicon package, a library that contains the logos of several programming languages and libraries, as well as of different design and development tools.

React Devicon includes all of the SVG icons of the original package exported as individual React components. In addition, each SVG file has been optimized using SVGO to ensure the smallest component size possible.

Instalation

Install this package using NPM:

npm install 'react-devicon' --save

Or Yarn:

yarn add 'react-devicon'

Usage

Import each icon component from its respective module. You can find the paths for all the modules of every icon looking at the documentation on https://fpoumian.github.io/react-devicon/. Please note that every icon typically has at least two or more different versions.

Each icon component exposes two props: width and height. You can enter either a string (i.e. "10em", "100px", etc) or an integer, which will be automatically converted to pixels.

import IconAmazonwebservices from 'react-devicon/amazonwebservices/original'

  export default () => (
    <div>
      <IconAmazonwebservices width={100} height={100}/>
    </div>
    )

Credits

All of the SVG files were taken directly from the Devicon library created by konpa.

React Devicon is an open source project created by Fernando Poumián and released under the MIT license.

Keywords

react

FAQs

Package last updated on 05 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts