mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add xmlns and other attributes to SVGAttributes
This commit is contained in:
@@ -325,7 +325,10 @@ React.DOM.div(htmlAttr);
|
||||
React.DOM.span(htmlAttr);
|
||||
React.DOM.input(htmlAttr);
|
||||
|
||||
React.DOM.svg({ viewBox: "0 0 48 48" },
|
||||
React.DOM.svg({
|
||||
viewBox: "0 0 48 48",
|
||||
xmlns: "http://www.w3.org/2000/svg"
|
||||
},
|
||||
React.DOM.rect({
|
||||
x: 22,
|
||||
y: 10,
|
||||
|
||||
6
react/react.d.ts
vendored
6
react/react.d.ts
vendored
@@ -2123,6 +2123,7 @@ declare namespace __React {
|
||||
x1?: number | string;
|
||||
x2?: number | string;
|
||||
x?: number | string;
|
||||
xChannelSelector?: string;
|
||||
xlinkActuate?: string;
|
||||
xlinkArcrole?: string;
|
||||
xlinkHref?: string;
|
||||
@@ -2132,10 +2133,15 @@ declare namespace __React {
|
||||
xlinkType?: string;
|
||||
xmlBase?: string;
|
||||
xmlLang?: string;
|
||||
xmlns?: string;
|
||||
xmlnsXlink?: string;
|
||||
xmlSpace?: string;
|
||||
y1?: number | string;
|
||||
y2?: number | string;
|
||||
y?: number | string;
|
||||
yChannelSelector?: string;
|
||||
z?: number | string;
|
||||
zoomAndPan?: string;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user