@khazh/tic-tac-toe-react
Version:
A customizable Tic Tac Toe game component for React with AI opponent, configurable board size, and win conditions
20 lines • 779 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
const Button = ({ children, disabled, ...props }) => (_jsx("button", { ...props, disabled: disabled, style: {
padding: "0.5rem 1rem",
fontSize: "1.25rem",
border: "1px solid #ccc",
borderRadius: "0.5rem",
background: disabled ? "#f5f5f5" : "#fff",
cursor: disabled ? "not-allowed" : "pointer",
opacity: disabled ? 0.6 : 1,
transition: "all 0.2s ease",
touchAction: "manipulation",
userSelect: "none",
minHeight: "44px", // Touch target size
display: "flex",
alignItems: "center",
justifyContent: "center",
...props.style,
}, children: children }));
export default Button;
//# sourceMappingURL=Button.js.map