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

1.1.1 • Public • Published

react-chessboard-ui ♟️

NPM
JavaScript Style Guide

A lightweight and customizable React chessboard component built with modern UI in mind. Easily integrate chess functionality into your React apps with FEN support, game-end detection, and position handling.

react-chessboard-ui preview

📘 Full documentation: https://chessboardui.space/


🚀 Features

  • 🎯 Fully controlled via FEN strings
  • ♻️ React functional component with hooks support
  • 🎨 Customizable styles (via CSS or override)
  • ♟️ Game-end and move-change callbacks
  • 🧩 Easy integration into any React project

📦 Installation

Install via npm:

npm install react-chessboard-ui

Or using yarn:

yarn add react-chessboard-ui

💡 Usage Example

import React from 'react';
import { ChessBoard } from 'react-chessboard-ui';
import 'react-chessboard-ui/dist/index.css'; // Required CSS

export const App = () => {
  return (
    <div>
      <ChessBoard 
        FEN="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
        onChange={handleChangePosition}
        onEndGame={handleEndGame}
      />
    </div>
  );
};

Full customizable

react-chessboard-ui preview

📘 Documentation for customization: https://chessboardui.space/properties/config/


👥 Authors

Created by:


📄 License

MIT © react-chessboard-ui


🧠 Keywords (for discoverability)

react chess chessboard react-chess chess ui react chess component fen chess game react board game

Package Sidebar

Install

npm i react-chessboard-ui

Weekly Downloads

20

Version

1.1.1

License

MIT

Unpacked Size

835 kB

Total Files

28

Last publish

Collaborators

  • skilldill