2023-06-06 13:24:20 -05:00
|
|
|
import React, { forwardRef } from 'react'
|
2023-06-01 18:28:22 +02:00
|
|
|
|
2025-05-25 16:29:57 +02:00
|
|
|
/**
|
|
|
|
* 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'
|