GitHub repository
A card for a public GitHub repository:
withastro/astro
stars forks
<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
repostringrequired
owner/name, or the repository’s full https://github.com/... URL.
variant"inset" | "flat"default: "inset"
inset puts the details on an inner, shaded surface; flat is one surface with less padding.
Writing content › Components