npm.io
3.4.2 • Published 2d ago

kokopu-react

Licence
LGPL-3.0-or-later
Version
3.4.2
Deps
1
Size
8.9 MB
Vulns
0
Weekly
0
Stars
7

Kokopu-React

Kokopu-React is a React-based library to create and display chessboard and chess-related components. Kokopu-React is built on top of Kokopu, a headless library that implements all the chess logic (game rules, parsing of FEN and PGN formats...).

NPM Version NPM Last Update NPM Downloads Build Status Coverage Status

Documentation & live-demo

https://kokopu-react.yo35.org/

Installation

npm install kokopu-react

If you use Webpack, please look at webpack configuration to get more information on how to configure it to handle Kokopu-React properly.

Example

import React from 'react';
import { createRoot } from 'react-dom/client';
import { Chessboard } from 'kokopu-react';

createRoot(document.body).render(<Chessboard />);

Chessboard component

More examples available in documentation & live-demo.

Keywords