2.3.0 • Published 4 years ago

react-svg-color v2.3.0

Weekly downloads
13
License
ISC
Repository
github
Last release
4 years ago

react-svg-color

Version NPM

react-svg-color allows you to change any color in a svg file.

Installation

    npm i react-svg-color

An example of how to use the component

    import SvgColor from 'react-svg-color'
    import Umbrella from 'umbrella.svg'
    
    ...

    <SvgColor 
        svg={Umbrella} 
        width={200} 
        colors={["#7EADCC", "#316F99", "#FFFDB8", "#FF8D78", "#FF8D78", "#7EADCC", "#B8FFF6", "#B8FFF6","#FF8D78"]}   
    />

Result

Props

NameTypeDescription
svgsvg filePaste your svg file
widthintChange width
colorsarrayStringColor array to change the desired colors (hex)
rotateintChange rotation
2.3.0

4 years ago

2.2.1

4 years ago

2.1.2

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

1.0.7

4 years ago

2.0.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago