@wirelineio/shogiboardjsx
Version:
Shogiboardjsx is a shogiboard for React. Inspired by Chessboardjsx
24 lines (22 loc) • 620 B
JavaScript
import React from 'react';
import Shogiboard from '../Shogiboard';
import { roughSquare } from '../customRough';
/* eslint react/display-name: 0 */
/* eslint react/prop-types: 0 */
export default function CustomizedBoard() {
return React.createElement("div", {
className: "App"
}, React.createElement(Shogiboard, {
id: "customized",
calcWidth: function calcWidth(_ref) {
var screenWidth = _ref.screenWidth;
return screenWidth < 500 ? 350 : 480;
},
roughSquare: roughSquare,
position: "start",
boardStyle: {
borderRadius: '3px'
},
dropOffBoard: "trash"
}));
}