JSPM

  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q65502F
  • License GPL-3.0

React and Next wrapper for Chessground with chessboard and pieces out of the box

Package Exports

  • next-chessground
  • next-chessground/dist/index.es.js
  • next-chessground/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (next-chessground) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Next Chessground

Next gen wrapper for Chessground packed with features and pawn promotion logic out of the box.

Built by chess players in React and Next.js

Live Demo

https://next-chessground.vercel.app

Features

  • legal chess moves only with built in support from chess.js
  • pawn promotion logic
  • custom chess board, chess pieces, move sounds and other chess settings
  • flip and resize the chess board

Installation

npm i next-chessground
# or
yarn add next-chessground

Usage

import NextChessground from 'next-chessground';

const App = () => {
  return (
    <div className="bg-white rounded shadow">
      <NextChessground />
    </div>
  );
};

export default App;