1.0.9 • Published 8 years ago

svg-react v1.0.9

Weekly downloads
337
License
MIT
Repository
github
Last release
8 years ago

Installation

If you use npm:

npm install --save svg-react

Usage

import Svg from 'svg-react'

<Svg id="loader" onClick={::this.spin} className="random" src='/icons/ring.svg'/>

Now you can use svg in react.js easy, and animate or customise it with css, yay!

No need for webpack or other compilers

============ props that are supported at the moment

onClick, className, width, height, id, viewBox, preserveAspectRatio
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago