You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add types for SVG elements
Adds a new module, React.Basic.DOM.SVG, with types for SVG
elements. The types are generated based on the svg-element-attribute npm
package. There were a few hyphenated elements (e.g. <font-face>) that
looked like they might be troublesome with React. I couldn't find any
information on whether React supports these, but they turned out to
be deprecated according to MDN, so in the end I omitted all the
deprecated elements.
* Fix the Props_svg type in React.Basic.DOM
The Props_svg type was generated from react-html-attributes, but
react-html-attributes intentionally lists the wrong set of attributes
for the svg tag:
"One more note: all SVG element attributes supported by React are under
the 'svg' key to avoid too many duplicated values and unnecessary file
size." (https://www.npmjs.com/package/react-html-attributes)
The attributes for Props_svg are now taken from svg-element-attributes
instead, so the Props_svg in React.Basic.DOM is now the same as the
Props_svg in React.Basic.DOM.SVG apart from using the HTML shared props
instead of the SVG ones.
* Fix SharedSVGProps
Add the missing row type parameter
* Remove redundant import
* Add 'style' to SharedSVGProps with correct type
0 commit comments