npm.io
0.1.5 • Published 1 year ago

@types/react-github-button

Licence
MIT
Version
0.1.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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";

declare namespace ReactGitHubButton {
    interface ReactReactGitHubButtonProps {
        /**
         * The type of information to display
         */
        type: "stargazers" | "watchers" | "forks";
        /**
         * Your GitHub id or organization name.
         */
        namespace: string;
        /**
         * The name of your repository.
         */
        repo: string;
        /**
         * The size of the button. Leave undefined for default.
         */
        size?: "large" | undefined;
        /**
         * Optional classname for styling the button.
         */
        className?: string | undefined;
    }
}

declare class ReactGitHubButton extends Component<ReactGitHubButton.ReactReactGitHubButtonProps> {}

export = ReactGitHubButton;

Additional Details

  • Last updated: Fri, 04 Oct 2024 1627 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Ifiok Jr..