Brick Breaker
The 1976 arcade legend in neon: aim with the paddle's edges, shatter the wall, survive faster waves.
- Zero dependencies
- React + Tailwind
- Accessible
- Reduced-motion aware
Preview
Animated · Full motion: idle animation, physics and effects. animated (default)
Armoured top rows take two hits, the ball leaves a speed trail and sub-stepped physics means it never tunnels through bricks. Three lives; each cleared wave comes back faster. Inspired by Breakout — Atari (1976).
Installation
$ npm i @pickui/brick-breaker
Publishing soonUntil it’s on npm, use the CLI or Manual tab. The API below stays the same.
Usage
example.tsx
import { BrickBreaker } from "@/components/pickui/brick-breaker";
export default function Example() {
return <BrickBreaker />;
}
404 & maintenance pagesDeveloper portfoliosWaiting screens (builds, queues, uploads)Event stands
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| storageKey | string | null | "pickui-brick-breaker-best" | Where the best score is saved (null = don't save). |
| className | string | — | Extra classes on the cabinet. |
| animated | boolean | true | false = the calm “Regular” version (no idle or ambient motion). |
Accessibility
- Mouse / touch follows the pointer; ← → also move the paddle; Space or a tap launches.
- 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.