react-usa-map icon indicating copy to clipboard operation
react-usa-map copied to clipboard

Add state-specific classes to customize

Open sreynen opened this issue 7 years ago • 1 comments

Currently the className for USAState paths is fixed as ${props.state} state and I would like to be able to pass in additional classes for each state. I imagine this would look something like: <USAMap customize={{ "CO": { class: "active" }, "NJ": { class: "active" }} />. My specific use case is being able to adjust stroke on states, but adjustable classes seems like a good way to make all style adjustable.

sreynen avatar Mar 31 '18 21:03 sreynen

That's also something that I've done, and also, if @gabidavila agrees that would be a good addition to the project, I might add a PR with that. :+1:

daviscabral avatar Aug 21 '18 07:08 daviscabral