Lottie component property

Hi, I’m creating a template to handover to a client, with some text to fill and a different lottie animation connected to it and I just realised I cannot link a lottie file to a component property, does anyone know if there is a way around it? I’ve tried using a custom element but couldn’t figure out how to make it work

thanks!

Nothing simple or convenient.

You could just create a link property and then build your own lottie playing code using that link- but for the client that means;

  • Upload a lottie to assets
  • Find the link to it
  • Copy/paste that link into component properties

Also, you’d be duplicating the lottie libs which isn’t ideal.

Likely you’re better just avoiding components in this situation.