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

How to create consistently typed SVG output components? #78

Open
justin-hackin opened this issue Apr 24, 2023 · 0 comments
Open

How to create consistently typed SVG output components? #78

justin-hackin opened this issue Apr 24, 2023 · 0 comments

Comments

@justin-hackin
Copy link
Owner

justin-hackin commented Apr 24, 2023

There's no way to constrain the React function return types to valid SVG.

Asset definitions could be functions returning svgjs library instances but this is rather constraining, forces the user to learn a new library, and looses some of the advantages of JSX syntax (readability, composability).

dompurify library can sanitize and report exclusions.

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

1 participant