Skip to content
Sam Ezeh edited this page Aug 2, 2022 · 4 revisions

Basic usage

The following script will create a chessground object and attach it to the body element on the page.

import { Chessground } from 'chessground';

const config = {};
const ground = Chessground(document.body, config);

To get the board to display correctly, you will need to write some stylesheets. For examples, see the example CSS files for chessground base, the board and the pieces.

Clone this wiki locally