mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Add slot HTML attributes
This commit is contained in:
Vendored
+1
@@ -2146,6 +2146,7 @@ declare namespace React {
|
||||
shape?: string;
|
||||
size?: number;
|
||||
sizes?: string;
|
||||
slot?: string;
|
||||
span?: number;
|
||||
spellCheck?: boolean;
|
||||
src?: string;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user