kokopu-react
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • Public • Published

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...).

https://www.npmjs.com/package/kokopu-react

Build Status Coverage Status

Documentation & live-demo

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

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.

Package Sidebar

Install

npm i kokopu-react

Weekly Downloads

100

Version

3.3.0

License

LGPL-3.0-or-later

Unpacked Size

9.21 MB

Total Files

649

Last publish

Collaborators

  • yo35