Skip to content
Components / Documentation

Repository link

A GitHub repository as a compact link with its stars and forks.

@fabrials/ui

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { RepoInfo } from "@fabrials/ui";

API reference

Prop / exportTypeDescription
owner / repostringThe repository; the link goes to github.com unless href is set.
stars / forksnumber | nullFetched and cached by the host. Unknown counts are left out, never shown as zero.
descriptionReactNodeA line under the name.

Behavior

Presentational: it never calls GitHub itself, so pages stay fast and rate limits stay the host's concern.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.