1
0
Fork 0

[react] feat: Added docs for components/Xray

This commit is contained in:
joostdecock 2025-05-29 14:12:20 +02:00
parent 5e5d3a0270
commit 0a345b3347
5 changed files with 64 additions and 7 deletions

View file

@ -17,7 +17,7 @@ import { getId, getProps, withinPartBounds, translateStrings } from './utils.mjs
import { Link as WebLink } from '@freesewing/react/components/Link'
/**
* Default pattern components that you can override
* Default Pattern components that you can override
*
* @public
* @constant
@ -45,7 +45,7 @@ const defaultComponents = {
* @param {JSX.Element} props.children - The component children, if they are set, we will not render any stacks
* @param {string} [props.className = 'freesewing pattern'] - SVG classes to set on the SVG element
* @param {object} [props.components = {}] - Any custom components to use in the pattern
* @param {object} [props.string = {}] - Strings to use for translation
* @param {object} [props.strings = {}] - Strings to use for translation
* @param {object} props.renderProps - The pattern's renderProps as generated by FreeSewing core
* @returns {JSX.Element}
*/