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

Documentation(svg): Migration from svgr or inlined in JSX SVG #128

Open
secundant opened this issue Oct 31, 2023 · 0 comments
Open

Documentation(svg): Migration from svgr or inlined in JSX SVG #128

secundant opened this issue Oct 31, 2023 · 0 comments
Assignees
Labels
scope:svg Issues related to svg

Comments

@secundant
Copy link
Owner

secundant commented Oct 31, 2023

Case 1 - SVGR

Users have SVG sources and generate SVG-in-JS with a CLI or loader.

Problem: How can they migrate?
Solution: Perform step-by-step replacement and comparison.

Case 2 - Inlined JSX SVG

Users have some inlined SVG but lack the original SVG sources.

Problem: SVG in JSX has distinct attributes (e.g., strokeWidth instead of stroke-width).
Solution: Provide an example script to convert it into native SVG.

@secundant secundant added the scope:svg Issues related to svg label Oct 31, 2023
@secundant secundant self-assigned this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:svg Issues related to svg
Projects
None yet
Development

No branches or pull requests

1 participant