Position Object
You can set the position
property with a Position Object.
HTML
<chess-board style="width: 400px"></chess-board>
JavaScript
const board = document.querySelector('chess-board');
board.position = {
d6: 'bK',
d4: 'wP',
e4: 'wK'
}