@brendonhudnell/react-hexgrid
Version:
Interactive hexagon grids with React bindings
6 lines (5 loc) • 367 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
function HexGrid({ width = 800, height = 600, viewBox = '-50 -50 100 100', children, }) {
return (_jsx("svg", Object.assign({ className: "grid", width: width, height: height, viewBox: viewBox, version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, { children: children }), void 0));
}
export default HexGrid;