Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow injecting svg elements as children #115

Open
Xentox-Phil opened this issue Sep 16, 2024 · 0 comments
Open

Allow injecting svg elements as children #115

Xentox-Phil opened this issue Sep 16, 2024 · 0 comments

Comments

@Xentox-Phil
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant