-
-
Notifications
You must be signed in to change notification settings - Fork 261
Home
Sam Ezeh edited this page Aug 2, 2022
·
4 revisions
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.