Skip to content

🎥 Make videos programmatically with React

fix: optional preserveAspectRatio

Raysayheyeab31c932c2a
diff --git a/packages/lottie/src/types.ts b/packages/lottie/src/types.ts
index d1bb7c26dd..b1adc81a5d 100644
--- a/packages/lottie/src/types.ts
+++ b/packages/lottie/src/types.ts
@@ -53,7 +53,7 @@ export type LottieProps = {
* https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio
*/
- preserveAspectRatio:
+ preserveAspectRatio?:
| AspectRatioConstraint
| `${AspectRatioConstraint} ${'slice' | 'meet'}`;
/**