UNPKG

react-chessboard-expandable

Version:

A fork of the react-chessboard library to support an expandable chessboard

23 lines (22 loc) 861 B
import { ReactNode } from "react"; import { Coords, Square as Sq } from "../types"; export declare enum SquareType { Normal = "Normal", NonExistent = "NonExistent", NonExistentHighlighted = "NonExistentHighlighted" } type SquareProps = { children: ReactNode; setSquares: React.Dispatch<React.SetStateAction<{ [square in Sq]?: Coords; }>>; location: Sq; squareColor: "white" | "black"; squareHasPremove: boolean; clickCallback: (location: Sq) => void; mouseOverCb?: (location: Sq) => void; mouseOutCb?: (location: Sq) => void; squareType: SquareType; }; export declare function Square({ location: location, squareColor, setSquares, squareHasPremove, children, clickCallback, mouseOverCb, mouseOutCb, squareType }: SquareProps): import("react/jsx-runtime").JSX.Element; export {};