@types/react-share
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -29,2 +29,7 @@ // Type definitions for react-share 3.0 | ||
/** | ||
* Whether to center the share box respectively to the screen or to the window. | ||
* @default "windowCenter" | ||
*/ | ||
windowPosition?: 'windowCenter' | 'screenCenter'; | ||
/** | ||
* Takes a function that returns a Promise to be fulfilled before calling | ||
@@ -39,2 +44,30 @@ * `onClick`. If you do not return promise, `onClick` is called immediately. | ||
/** | ||
* A class name to add to the others added by react-share (SocialMediaShareButton, ...). | ||
*/ | ||
className?: string; | ||
/** | ||
* Click callback handler. | ||
*/ | ||
onClick?: (link: string) => void; | ||
/** | ||
* If false, does not open a new window and call the onClick callback instead. | ||
* @default true | ||
*/ | ||
openWindow?: boolean; | ||
/** | ||
* The HTML role of the div. | ||
* @default "button" | ||
*/ | ||
role?: React.HTMLAttributes<HTMLDivElement>['role']; | ||
/** | ||
* Extra style for the button. | ||
*/ | ||
style?: React.HTMLAttributes<HTMLDivElement>['style']; | ||
/** | ||
* Indicates that its element can be focused, and where it participates in sequential keyboard | ||
* navigation. | ||
* @default "0" | ||
*/ | ||
tabIndex?: React.HTMLAttributes<HTMLDivElement>['tabIndex']; | ||
/** | ||
* An object to pass any additional properties, such as `aria-*` attributes. | ||
@@ -41,0 +74,0 @@ */ |
{ | ||
"name": "@types/react-share", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "TypeScript definitions for react-share", | ||
@@ -29,4 +29,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "ffb6801b53fff1ac4bd260b7ac9d46f3739f6c82743aa634cffec34b97870108", | ||
"typesPublisherContentHash": "a660b33d7c77037622ad036050be895abce3d0ad32ae757a07456764118e60d6", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 18 Nov 2019 21:40:09 GMT | ||
* Last updated: Fri, 22 Nov 2019 17:37:26 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
13203
287