UNPKG

react-xiangqiboard

Version:

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

12 lines (11 loc) 388 B
import { ReactNode } from "react"; import { Coords, Square as Sq } from "../types"; type SquareProps = { children: ReactNode; setSquares: React.Dispatch<React.SetStateAction<{ [square in Sq]?: Coords; }>>; square: Sq; }; export declare function Square({ square, setSquares, children, }: SquareProps): import("react/jsx-runtime").JSX.Element; export {};