UNPKG

react-tetris2

Version:

Classic Tetris game as a reusable React 18+ component, fully typed with TypeScript and controllable via ref.

13 lines 461 B
import { default as React } from 'react'; import { ActivePiece } from '../../models/Piece'; /** * Renders a small 4×4 preview of the current or next piece. * Falls back to an empty grid if no piece is passed. */ interface PieceViewProps { /** If provided, renders this piece’s 4×4 shape at its rotation. */ piece?: ActivePiece; } declare const PieceView: React.FC<PieceViewProps>; export default PieceView; //# sourceMappingURL=PieceView.d.ts.map