feat(react-components): Added Pattern component
This commit is contained in:
parent
c95ebd5934
commit
e146e55c69
20 changed files with 868 additions and 0 deletions
12
packages/react-components/src/pattern/grid.mjs
Normal file
12
packages/react-components/src/pattern/grid.mjs
Normal file
|
@ -0,0 +1,12 @@
|
|||
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 + ')'}
|
||||
/>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue