1.0.8 • Published 6 years ago

react-svgloader v1.0.8

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
6 years ago

svgloader

This is a ReactJS Component for SVG file loading by Ajax and DOM injection. This component allow us to insert any SVG file specifying a path and adding a class name for css customization.

Example:

Please refer to the example file to see it working.

To run the example: 1. Clone the repository 2. Execute in console:

cd example
npm install
npm start

General Usage

As you will be able to see in example in order to use the component we need to importe it as:

import SvgLoader from 'react-svgloader';

Then, in the render method we can just call it like:

<SvgLoader src='/svg/logo.svg' className="App-logo svg-logo"/>

Installation

Install this component is easy, just use npm as:

npm install react-svgloader
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago