Pong

Where video games began: you vs the CPU, first to 7, in glowing neon.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Hit the ball with your paddle's edges to angle it; every rally speeds it up. The CPU reacts with a delay and a speed cap, so it can be beaten. Inspired by Pong — Atari (1972).

Installation

$ npm i @pickui/pong

Publishing soonUntil it’s on npm, use the CLI or Manual tab. The API below stays the same.

Usage

example.tsx
import { Pong } from "@/components/pickui/pong";

export default function Example() {
  return <Pong />;
}
404 & maintenance pagesDeveloper portfoliosWaiting screens (builds, queues, uploads)Event stands

Props

PropTypeDefaultDescription
storageKeystring | null"pickui-pong-best"Where the best score is saved (null = don't save).
targetnumber7Points needed to win.
classNamestring—Extra classes on the cabinet.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Mouse / touch, or ↑ ↓ / W S.
  • Keyboard input only while the cabinet is focused (click or Tab to it), so the page never scrolls by surprise; Esc / P pauses.
  • Pauses automatically when the tab is hidden, the cabinet scrolls off-screen or loses focus; reduced motion turns off screen shake and thins particles.