1
0
Fork 0
freesewing/packages/react/components/Pattern/group.mjs

18 lines
415 B
JavaScript
Raw Normal View History

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}
*/
2023-06-04 23:28:43 -05:00
export const Group = forwardRef((props, ref) => (
<g {...props} ref={ref}>
{props.children}
</g>
))
2023-06-07 10:06:30 -05:00
Group.displayName = 'Group'