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:
parent
d0baf7cece
commit
22a89f12d3
50 changed files with 1816 additions and 669 deletions
|
@ -1,5 +1,13 @@
|
|||
import React from 'react'
|
||||
|
||||
/**
|
||||
* A component to render a circle inside a FreeSewing pattern
|
||||
*
|
||||
* @component
|
||||
* @param {object} props - All component props
|
||||
* @param {object} props.point - The point that holds the circle info
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
export const Circle = ({ point }) =>
|
||||
point.attributes.list['data-circle'].map((r, i) => {
|
||||
const circleProps = point.attributes.circleProps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue