1
0
Fork 0

feat(dev): Added react docs for Pattern + refactor

This adds support for not only documenating components, but also
constants and functions that may be exported next to components.
This commit is contained in:
joostdecock 2025-05-25 16:29:57 +02:00
parent d0baf7cece
commit 22a89f12d3
50 changed files with 1816 additions and 669 deletions

View file

@ -1,7 +1,14 @@
// __SDEFILE__ - This file is a dependency for the stand-alone environment
// eslint-disable-next-line no-unused-vars
import React from 'react'
/**
* A component to render the grid for a paperless FreeSewing pattern' stack
*
* @component
* @param {object} props - All component props
* @param {Stack} props.stack - The FreeSewing Stack object for the pattern
* @param {string} props.stackName - The name of the FreeSewing Stack
* @returns {JSX.Element}
*/
export const Grid = ({ stack, stackName }) => (
<rect
x={stack.topLeft.x}