1
0
Fork 0
freesewing/packages/react/components/Pattern/group.mjs
joostdecock 22a89f12d3 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.
2025-05-25 16:29:57 +02:00

17 lines
415 B
JavaScript

import React, { forwardRef } from 'react'
/**
* A component to render an SVG group
*
* @component
* @param {object} props - All component props
* @param {JSX.Element} props.children - The component children, will be rendered inside the group
* @returns {JSX.Element}
*/
export const Group = forwardRef((props, ref) => (
<g {...props} ref={ref}>
{props.children}
</g>
))
Group.displayName = 'Group'