UNPKG

react-shareable-buttons

Version:

Social media share buttons and share counts for React and Nextjs.

15 lines (14 loc) 796 B
import React from 'react'; import { CustomProps } from '../types'; export type Props<LinkOptions> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof CustomProps<LinkOptions>> & CustomProps<LinkOptions>; declare const SocialShareButton: { <LinkOptions>({ onShareWindowClose, windowHeight, windowPosition, windowWidth, blankTarget, beforeOnClick, disabled, networkLink, onClick, url, openShareDialogOnClick, opts, children, forwardedRef, networkName, style, round, bgColor, size, borderRadius, iconFillColor, buttonTitle, color, ...rest }: Props<LinkOptions>): React.JSX.Element; defaultProps: { disabledStyle: { opacity: number; }; openShareDialogOnClick: boolean; resetButtonStyle: boolean; }; }; export default SocialShareButton;