1
0
Fork 0
freesewing/packages/react-components/src/pattern/grid.mjs

13 lines
254 B
JavaScript
Raw Normal View History

import React from 'react'
export const Grid = ({ part, partName, settings }) => (
<rect
x={part.topLeft.x}
y={part.topLeft.y}
width={part.width}
height={part.height}
className="grid"
fill={'url(#grid-' + partName + ')'}
/>
)