跳到导航

GitHub repository

以 Markdown 格式查看

The <GitHub.Repo> component renders a card that links to a GitHub repository. The card is built from the repo property alone; Fern doesn’t call the GitHub API, so the card shows no star counts or descriptions.

Usage

Markdown
<GitHub.Repo repo="fern-api/fern" />

Properties

repo
stringRequired

The repository as owner/name or as a full https://github.com/owner/name URL. The card doesn’t render if the value isn’t a valid repository reference.

variant
'inset' | 'flat'Defaults to inset

flat removes the card’s shadow.