Skip to content

🎥 Make videos programmatically with React

fix props

Jonny Burger7e8aa95923fb
diff --git a/packages/docs/docs/shapes/heart.mdx b/packages/docs/docs/shapes/heart.mdx
index a4e7e740c3..98f417cdb1 100644
--- a/packages/docs/docs/shapes/heart.mdx
+++ b/packages/docs/docs/shapes/heart.mdx
@@ -29,7 +29,7 @@ export const MyComposition = () => {
alignItems: 'center',
}}
>
- <Heart size={100} fill="red" stroke="black" strokeWidth={2} />
+ <Heart width={100} fill="red" stroke="black" strokeWidth={2} />
</AbsoluteFill>
);
};
diff --git a/packages/docs/docs/shapes/make-heart.mdx b/packages/docs/docs/shapes/make-heart.mdx
index 30593d8aae..8a4c280cd4 100644
--- a/packages/docs/docs/shapes/make-heart.mdx
+++ b/packages/docs/docs/shapes/make-heart.mdx
@@ -16,7 +16,7 @@ Generates an SVG path for a heart.
import {makeHeart} from '@remotion/shapes';
const {path, width, height, transformOrigin, instructions} = makeHeart({
- size: 100,
+ width: 100,
});
console.log(path); // M 100 120 C 40 110 20 70 60 60 C 90 40 110 40 140 60 C 180 70 160 110 100 120 Z