gilbarbara / react-inlinesvg

An SVG loader component for ReactJS

Home Page:https://codesandbox.io/s/github/gilbarbara/react-inlinesvg/tree/main/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color a SVG path with id="abc"

ashishmundrajll opened this issue · comments

Hi All.

We have a SVG loaded in this viewer. Now when someone clicks a button outside viewer, we like to color SVG path where . How can we achieve this?

Thanks,
Ashish

Hey @ashishmundrajll

This package just loads the files, it doesn't change the styles.
You can try adding a CSS class and change the path fill with it.