npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-devicons-component

v1.1.0

Published

React Devicons is a package that allows you to easily use Devicons, a collection of icons representing programming languages, development tools, and more, in your React projects.

Downloads

12

Readme

React Devicons Components Node.js Package

React Devicons is a package that allows you to easily use Devicons, a collection of icons representing programming languages, development tools, and more, in your React projects.

Table of Contents

Installation

You can install React Devicons using npm:

npm install react-devicons-components

Or with yarn:

yarn add react-devicons-components

Usage

To use a Devicon in your React component, first import the Devicon component from react-devicons. Then, use it in your JSX, passing the name of the icon you want to use to the name prop:

import React from 'react';
import Devicon from 'react-devicons-components';

function Index() {
  return (
    <div>
      <Devicon name="react" svg={false}/>
    </div>
  );
}

export default Index;

In this example, the Devicon component will render the icon for React.

Available Props

| Prop | Value | Usage | |-----------|------------|-----------------------------------------------------------------------------------| | svg | true/false | To use the SVG images instead of font icons | | original | true/false | To use the original font/svg of the devicons (check for the site for availability | | plain | true/false | To use the Plain font/svg of the devicons (check for the site for availability | | wordmark | true/false | To use the Wordmark font/svg of the devicons (check for the site for availability | | fontSize | string | used to mention the fontsize in pixels (ex: 72px) | | className | string | Use the any css classes to manipulate the svg/font view |

Available Icons

For a list of available icons, please see the Devicon project and their GitHub repository.

Contributing

We welcome contributions! Please see our contributing guide for details.

License

React Devicons Components is licensed under the MIT License.

This README provides a brief description of the package, installation instructions, usage instructions, and a link to a list of available icons. It also invites contributions and provides information about the license. When writing a README, remember to keep it succinct and to the point, while providing all the information a developer would need to understand what your package does and how to use it. And don't forget to keep it up to date as your package evolves! If your package has additional requirements or complexity, you may need to provide more detailed instructions or examples. For example, if your Devicon component accepted additional props for size or color, you would want to document those.