Skip to content

🎥 Make videos programmatically with React

crumb

Jonny Burgerd9a73c48666a
diff --git a/packages/docs/docs/shapes/circle.md b/packages/docs/docs/shapes/circle.md
index b01d5d3bbc..de21f75316 100644
--- a/packages/docs/docs/shapes/circle.md
+++ b/packages/docs/docs/shapes/circle.md
@@ -1,5 +1,4 @@
---
-image: /generated/articles-docs-shapes-circle.png
title: <Circle />
crumb: "@remotion/shapes"
---
@@ -11,6 +10,7 @@ Generates Circle SVG component
## Arguments
### `options`
+
An object with the following arguments:
- `width`: `number` - The width of the circle
@@ -20,36 +20,35 @@ An object with the following arguments:
- `strokeWidth`: `number` - The width of the stroke
- `style`: `React.CSSProperties` - The css styles applied to `svg` component
-
Use Circle SVG into Remotion
```tsx twoslash
-
import { Circle } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";
export const MyComposition = () => {
return (
<AbsoluteFill
- style={{
- backgroundColor: "white",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Circle
+ style={{
+ backgroundColor: "white",
+ justifyContent: "center",
+ alignItems: "center",
+ }}
+ >
+ <Circle
width={100}
height={100}
fill="green"
stroke="red"
strokeWidth={1}
/>
- </AbsoluteFill>
+ </AbsoluteFill>
);
};
```
## See also
+
- [makeCircle()](/docs/shapes/make-circle)
- [`@remotion/shapes`](/docs/shapes)
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/shapes/src/circle.tsx)
diff --git a/packages/docs/docs/shapes/make-circle.md b/packages/docs/docs/shapes/make-circle.md
index 78f1c43e6f..d340e01015 100644
--- a/packages/docs/docs/shapes/make-circle.md
+++ b/packages/docs/docs/shapes/make-circle.md
@@ -1,5 +1,4 @@
---
-image: /generated/articles-docs-shapes-make-circle.png
title: makeCircle()
crumb: "@remotion/shapes"
---
diff --git a/packages/docs/docs/shapes/make-triangle.md b/packages/docs/docs/shapes/make-triangle.md
index 9534b7869e..2a6c2eeeb6 100644
--- a/packages/docs/docs/shapes/make-triangle.md
+++ b/packages/docs/docs/shapes/make-triangle.md
@@ -1,5 +1,4 @@
---
-image: /generated/articles-docs-shapes-make-triangle.png
title: makeTriangle()
crumb: "@remotion/shapes"
---
diff --git a/packages/docs/docs/shapes/triangle.md b/packages/docs/docs/shapes/triangle.md
index 741ff712a2..676aebe095 100644
--- a/packages/docs/docs/shapes/triangle.md
+++ b/packages/docs/docs/shapes/triangle.md
@@ -1,5 +1,4 @@
---
-image: /generated/articles-docs-shapes-triangle.png
title: <Triangle />
crumb: "@remotion/shapes"
---
@@ -11,42 +10,37 @@ Generate Triangle SVG component
## Arguments
### `options`
+
An object with the following arguments:
- `width`: `number` - The width of the triangle
- `height`: `number` - he height of the triangle
-- `fill`: `string` `optional` - The fill color
-- `direction`: `string` - The identifier what kind of rectangle, possible values `left`, `right`, `top` and `bottom`
+- `fill`: `string` `optional` - The fill color
+- `direction`: `string` - The identifier what kind of rectangle, possible values `left`, `right`, `top` and `bottom`
- `style`: `React.CSSProperties` - The radius of the circle. A value lower or equal to zero disables rendering of the circle
-
Example Triangle SVG
```tsx twoslash
-
import { Triangle } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";
export const MyComposition = () => {
return (
<AbsoluteFill
- style={{
- backgroundColor: "white",
- justifyContent: "center",
- alignItems: "center",
- }}
- >
- <Triangle
- width={100}
- height={100}
- fill="red"
- direction="left"
- />
- </AbsoluteFill>
+ style={{
+ backgroundColor: "white",
+ justifyContent: "center",
+ alignItems: "center",
+ }}
+ >
+ <Triangle width={100} height={100} fill="red" direction="left" />
+ </AbsoluteFill>
);
};
```
## See also
+
- [makeTriangle()](/docs/shapes/make-triangle)
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/shapes/src/triangle.tsx)