support for SVG elements
See original GitHub issueWill there be support for SVG elements or not?
Now the error appears. Since the SVG element is not compatible with the HTML element.
TS2322: Type '(instance: HTMLElement | null) => void' is not assignable to type 'LegacyRef<SVGSVGElement>'.
Type '(instance: HTMLElement | null) => void' is not assignable to type '(instance: SVGSVGElement | null) => void'.
Types of parameters 'instance' and 'instance' are incompatible.
Type 'SVGSVGElement | null' is not assignable to type 'HTMLElement | null'.
Type 'SVGSVGElement' is missing the following properties from type 'HTMLElement':
accessKey, accessKeyLabel, autocapitalize, dir, and 19 more.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
SVG: Scalable Vector Graphics - MDN Web Docs - Mozilla
Chrome Edge
svg Full support. Chrome1. Toggle history Full support. Edge...
baseProfile. Deprecated Full support. ChromeYes. Toggle history Full support. Edge...
contentScriptType. Deprecated No support. ChromeNo....
Read more >SVG (basic support) | Can I use... Support tables for HTML5 ...
SVG (basic support). - CR. Method of displaying basic Vector Graphics features using the embed or object elements. Refers to the SVG 1.1...
Read more >SVG Properties and CSS
It is important to note that not every SVG element will support the same CSS properties. Much like how there are CSS properties...
Read more >HTML SVG Graphics
The HTML <svg> element is a container for SVG graphics. SVG has several methods for drawing paths, boxes, circles, text, and graphic images....
Read more >Document Structure — SVG 2
'svg' elements can appear in the middle of SVG content. This is the mechanism by which SVG document fragments can be embedded within...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you very much!
🎉 This issue has been resolved in version 9.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀