UNPKG

react-xiangqiboard

Version:

A simple Xiangqi Board for React. Inspired and adapted from the unmaintained Chessboard.jsx. A fork of react-chessboard.

10 lines (9 loc) 319 B
import { CustomPieceFn, Piece as Pc } from "../types"; type PieceProps = { piece: Pc; width: number; customPieceJSX?: CustomPieceFn; dndId: string; }; export declare const SparePiece: ({ piece, width, customPieceJSX, dndId, }: PieceProps) => import("react/jsx-runtime").JSX.Element; export {};