UNPKG

react-github-buttons

Version:

React Components for dynamic buttons for github repo's star, fork etc.

28 lines (27 loc) 736 B
/// <reference types="react" /> /** * @function GithubButton */ import * as PropTypes from 'prop-types'; export interface IPropTypes { owner: string; repo: string; variant: string; count: number; showCount: boolean; } declare function GithubButton(props: IPropTypes): JSX.Element; declare namespace GithubButton { var propTypes: { count: PropTypes.Requireable<number>; owner: PropTypes.Validator<string>; repo: PropTypes.Validator<string>; variant: PropTypes.Requireable<string>; showCount: PropTypes.Requireable<boolean>; }; var defaultProps: { count: number; showCount: boolean; }; } export default GithubButton;