Open thep0y opened 6 months ago
SVG supports the definition of namespace prefixes, but these attributes are missing in SolidJS, as indicated by the error in the title.
nope
const Icon = () => ( <svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" // <= Property 'xmlns:xlink' does not exist on type 'SvgSVGAttributes<SVGSVGElement>'. > // ... </svg>< )
https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course#declaring_namespace_prefixes
No response
Accidentally closed this one.
Valid typescript types can not contain a colon symbol : so it would either have to be xmlnsXlink or just xlink
:
xmlnsXlink
xlink
Describe the bug
SVG supports the definition of namespace prefixes, but these attributes are missing in SolidJS, as indicated by the error in the title.
Your Example Website or App
nope
Steps to Reproduce the Bug or Issue
Expected behavior
https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course#declaring_namespace_prefixes
Screenshots or Videos
No response
Platform
Additional context
No response