Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add state-specific classes to customize #24

Open
sreynen opened this issue Mar 31, 2018 · 1 comment
Open

Add state-specific classes to customize #24

sreynen opened this issue Mar 31, 2018 · 1 comment

Comments

@sreynen
Copy link

sreynen commented Mar 31, 2018

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.

@daviscabral
Copy link

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants