react-components
Published as @freesewing/react-components, this package provides various React components to render FreeSewing patterns, as well as some utilities to facilitate frontend integration.
Exports
FreeSewing uses named exports, and below is a list of all exports:
Pattern
: Renders a FreeSewing patternSvg
: Renders the svg section of a FreeSewing patternDefs
: Renders the defs of a FreeSewing patternGroup
: Renders an SVG group of a FreeSewing patternStack
: Renders a stack of a FreeSewing patternPart
: Renders a part of a FreeSewing patternPoint
: Renders a point of a FreeSewing patternPath
: Renders a path of a FreeSewing patternSnippet
: Renders a snippet of a FreeSewing patternGrid
: Renders the grid of a FreeSewing patternText
: Renders text of a FreeSewing patternTextOnPath
: Renders text on path of a FreeSewing patternPatternXray
: Renders the Xray/inspector variant of a FreeSewing patternutils
: A plain object holding the following utilities:getProps
withinPartBounds
getId
translateStrings
Installation
npm install @freesewing/react-components