Motoko UI Released — Explore the components

GitHub Sky

An interactive night-sky card — find the real star, then star the project on GitHub.

Find the one real star.

Star this project on GitHub

Installation

pnpm dlx shadcn@latest add @motokoui/github-sky

Usage

import { GitHubSky } from "@/components/ui/github-sky"
 
export default function Example() {
  return <GitHubSky href="https://github.com/your/repo" />
}

Move across the sky. Nearby stars react with a soft parallax. When you find the one real star, the CTA fades in. Clicking ⭐ Star on GitHub sends that star toward the GitHub icon with a quiet trail.

Keyboard users can focus the real star (or Tab into the card) to reveal the content. prefers-reduced-motion skips the discovery sequence and shows the CTA immediately.

Props

PropTypeDefault
hrefstringrequired
headlinestring"Every project starts with one star."
descriptionstring"Maybe this one belongs to you."
buttonLabelstring"⭐ Star on GitHub"
hintstring"Find the one real star."
starCountnumber220 (clamped 150–300)
seednumber42
initiallyRevealedbooleanfalse
onStar() => void
openInNewTabbooleantrue
classNamestring