lottie-react
lottie-react copied to clipboard
Allow injecting svg elements as children
Is your feature request related to a problem? Please describe. In my design I need to add custom elements that need to be dynamic in the svg.
Describe the solution you'd like The solution to this problem would be that you can pass children into the Lottie Component which get rendered inside the created svg.
<Lottie>
<rect x={0} y={0} width={100} color="blue"/>
</Lottie>
Describe alternatives you've considered You could achieve this aswell with position relative on the lottie and creating you own svg that has the same dimensions therefore you can add the rect ontop of the other svg...
Additional context Add any other context or screenshots about the feature request here.