Skip to content

🎥 Make videos programmatically with React

fix docs inconsistency in shapes

Jonny Burgerf8530394742b
diff --git a/packages/docs/docs/shapes/star.mdx b/packages/docs/docs/shapes/star.mdx
index 7874a0fd63..a19df85dc5 100644
--- a/packages/docs/docs/shapes/star.mdx
+++ b/packages/docs/docs/shapes/star.mdx
@@ -1,10 +1,10 @@
---
image: /generated/articles-docs-shapes-star.png
title: <Star />
-crumb: "@remotion/shapes"
+crumb: '@remotion/shapes'
---
-import {ShapeSeeAlso, ShapeOptions} from "../../components/shapes/shapes-info"
+import {ShapeSeeAlso, ShapeOptions} from '../../components/shapes/shapes-info';
_Part of the [` @remotion/shapes`](/docs/shapes) package._
@@ -12,24 +12,24 @@ Renders an SVG element containing a star.
## Explorer
-<Demo type="star"/>
+<Demo type="star" />
## Example
```tsx twoslash title="src/Star.tsx"
-import { Star } from "@remotion/shapes";
-import { AbsoluteFill } from "remotion";
+import {Star} from '@remotion/shapes';
+import {AbsoluteFill} from 'remotion';
export const MyComposition = () => {
return (
<AbsoluteFill
style={{
- backgroundColor: "white",
- justifyContent: "center",
- alignItems: "center",
+ backgroundColor: 'white',
+ justifyContent: 'center',
+ alignItems: 'center',
}}
>
- <Star points={5} innerRadius={150} outerRadius={200} fill="red" />
+ <Star points={5} innerRadius={100} outerRadius={200} fill="red" />
</AbsoluteFill>
);
};
@@ -41,4 +41,4 @@ export const MyComposition = () => {
## See also
-<ShapeSeeAlso shape="star"/>
+<ShapeSeeAlso shape="star" />