# GitHub repository

A card for a public GitHub repository:

<GitHub.Repo repo="withastro/astro" />

```mdx
<GitHub.Repo repo="withastro/astro" />
```

The repository's name and link are part of the page. Its description, star count, and fork count are loaded from GitHub's public API when the page opens. GitHub allows 60 of those requests an hour per reader, so the result is kept for the rest of the reader's browser session; if the request fails, the card still works as a link.

**`GitHub.Repo` props**

<Parameter name="repo" type="string" required>
  `owner/name`, or the repository's full `https://github.com/...` URL.
</Parameter>

<Parameter name="variant" type='"inset" | "flat"' default='"inset"'>
  `inset` puts the details on an inner, shaded surface; `flat` is one surface with less padding.
</Parameter>