next-chessground
Version:
React and Next wrapper for Chessground with chessboard and pieces out of the box
41 lines (28 loc) • 754 B
Markdown
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
[](https://next-chessground.vercel.app)
- 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
```bash
npm i next-chessground
yarn add next-chessground
```
```js
import NextChessground from 'next-chessground';
const App = () => {
return (
<div className="bg-white rounded shadow">
<NextChessground />
</div>
);
};
export default App;
```