Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-svg-icon

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-icon

React SVG icon component

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by25%
Maintainers
3
Weekly downloads
 
Created
Source

React SVG Icon npm Build Status devDependency Status

React SVG icon component

Inline SVG assets

Create your SVG sprite and inline them at the start of you HTML document. There's a nice tutorial on how to do this on CSS-Tricks

Commands

You need rackt-cli v0.5.3 to execute some of these commands.

  • npm install install node dependencies
  • npm start run server
  • npm test run tests
  • npm build build component
  • npm publish publish component to npm (verify versions in package.json and bower.json)
  • rackt pages rebuild gh-pages branch

Include your icon component

import Icon from 'react-svg-icon';

<Icon
    name='icon-name'
    className='icon-class'
/>

Example

You can find an example here: https://springload.github.io/react-svg-icon/

Keywords

FAQs

Package last updated on 21 Apr 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc