Chessboard component. Chessground Svelte wrapper.
Svelte Chessground is a Svelte chessboard component that serves as a wrapper around Chessground, an open-source chess UI developed for Lichess. It provides screenshots of chessboards in both 2D and 3D.
To install Svelte Chessground, you can follow these steps:
npm install svelte-chessground
import Chessboard from "svelte-chessground";
<svelte:head>
<style>
@import "svelte-chessground/dist/styles.css";
</style>
</svelte:head>
<Chessboard />
Svelte Chessground offers a convenient way to integrate a chessboard component into Svelte applications. It leverages the features of Chessground and provides extensive customization options through props. With its reactivity and support for various configurations, it allows users to create interactive chessboard experiences. Additionally, it offers examples and guidance for applying custom CSS styles to completely restyle the chessboard.