Add slot HTML attributes

This commit is contained in:
Kanchalai Tanglertsampan
2017-02-21 14:35:48 -08:00
parent b2fc77c93d
commit ac7c9faeee
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -2146,6 +2146,7 @@ declare namespace React {
shape?: string;
size?: number;
sizes?: string;
slot?: string;
span?: number;
spellCheck?: boolean;
src?: string;
+1
View File
@@ -317,6 +317,7 @@ var htmlAttr: React.HTMLProps<HTMLElement> = {
children: children,
className: "test-attr",
style: divStyle,
slot: "HTMLComponent",
onClick: (event: React.MouseEvent<{}>) => {
event.preventDefault();
event.stopPropagation();
+1
View File
@@ -30,5 +30,6 @@ StatelessComponent2.defaultProps = {
<text x="200" y="300" strokeWidth="5" stroke="black" alignmentBaseline="middle">
Hello, world!
</text>
<div slot="Some Div"> Hello again! </div>
</g>
</svg>;