Skip to content

Allow injecting svg elements as children #115

@Xentox-Phil

Description

@Xentox-Phil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions