Installation
npm install --save @types/react-github-button
Summary
This package contains type definitions for react-github-button (https://github.com/benjycui/react-github-button#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-github-button.
index.d.ts
import { Component } from "react";
export interface ReactGitHubButtonProps {
/**
* The type of information to display
*/
type: "stargazers" | "watchers" | "forks";
/**
* The size of the button. Leave undefined for default.
*/
size?: "large" | undefined;
/**
* Your GitHub id or organization name.
*/
namespace: string;
/**
* The name of your repository.
*/
repo: string;
}
export default class GitHubButton extends Component<ReactGitHubButtonProps> {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Ifiok Jr..