Skip to content

🎥 Make videos programmatically with React

docs

Jonny Burgerd11053f9ef56
diff --git a/packages/docs/components/TableOfContents/renderer.tsx b/packages/docs/components/TableOfContents/renderer.tsx
index 3c0bd1674c..d24a7bd554 100644
--- a/packages/docs/components/TableOfContents/renderer.tsx
+++ b/packages/docs/components/TableOfContents/renderer.tsx
@@ -10,7 +10,7 @@ export const TableOfContents: React.FC = () => {
<strong>getCompositions()</strong>
<div>List available compositions</div>
</TOCItem>
- <TOCItem link="/docs/renderer/selectComposition">
+ <TOCItem link="/docs/renderer/select-composition">
<strong>selectComposition()</strong>
<div>Get a composition</div>
</TOCItem>
diff --git a/packages/docs/docs/data-fetching.md b/packages/docs/docs/data-fetching.md
index 0b34739563..0086767bd2 100644
--- a/packages/docs/docs/data-fetching.md
+++ b/packages/docs/docs/data-fetching.md
@@ -252,7 +252,7 @@ export const calculateMyCompMetadata: CalculateMetadataFunction<
};
```
-Learn more about this feature in the [Variable metadata](/docs/variable-metadata) page.
+Learn more about this feature in the [Variable metadata](/docs/dynamic-metadata) page.
### Aborting stale requests
diff --git a/packages/docs/docs/dynamic-metadata.md b/packages/docs/docs/dynamic-metadata.md
index f8e96d3ab2..41de4457bf 100644
--- a/packages/docs/docs/dynamic-metadata.md
+++ b/packages/docs/docs/dynamic-metadata.md
@@ -50,7 +50,7 @@ export const Root: React.FC = () => {
};
```
-The `props` defaults to the `defaultProps` specified, but may be overriden by [passing input props to the render](/props-resolution).
+The `props` defaults to the `defaultProps` specified, but may be overriden by [passing input props to the render](/docs/props-resolution).
Return an object with `durationInFrames` to change the duration of the video.
In addition or instead, you may also return `fps`, `width` and `height` to update the video's resolution and framerate.
diff --git a/packages/docs/docs/passing-props.md b/packages/docs/docs/passing-props.md
index ec6545acb0..f10e8904dc 100644
--- a/packages/docs/docs/passing-props.md
+++ b/packages/docs/docs/passing-props.md
@@ -70,7 +70,7 @@ export const Root: React.FC = () => {
};
```
-Default props are useful so you don't preview your video with no data. [Default props will overriden by input props](/docs/props-resolution).
+Default props are useful so you don't preview your video with no data. [Default props will ne overriden by input props](/docs/props-resolution).
## Define a schema<AvailableFrom v="4.0.0"/>
diff --git a/packages/docs/docs/schemas.md b/packages/docs/docs/schemas.md
index 36c5d49081..ce77e9ade0 100644
--- a/packages/docs/docs/schemas.md
+++ b/packages/docs/docs/schemas.md
@@ -5,7 +5,7 @@ sidebar_label: Defining a schema
crumb: "How To"
---
-As an alternative to [using TypeScript types](/docs/parametrized-rendering) to define the shape of the props your composition accepts, you may use [Zod](https://zod.dev/) to define a schema for your props. You may do so if you want to:
+As an alternative to [using TypeScript types](/docs/parametrized-rendering) to define the shape of the props your component accepts, you may use [Zod](https://zod.dev/) to define a schema for your props. You may do so if you want to:
<Step>1</Step> Validate the props during rendering. [TODO] <br/>
<Step>2</Step> Edit the props visually in the Remotion Preview.
@@ -137,14 +137,14 @@ export const RemotionRoot: React.FC = () => {
};
```
+## Editing props visually
+
+When you have defined a schema for your props, you can [edit them visually in the Remotion Preview](/docs/visual-editing). This is useful if you want to quickly try out different values for your props.
+
## Supported types
All schemas that are supported by [Zod](https://zod.dev/) are supported by Remotion.
Remotion requires that the top-level type is a `z.object()`, because the collection of props of a React component is always an object.
-In addition to the built in types, the `@remotion/zod-types` also provides [`zColor()`](/docs/zod-types/z-color), including a color picker interface in the Remotion Preview.
-
-## Editing props visually
-
-When you have defined a schema for your props, you can [edit them visually in the Remotion Preview](/docs/visual-editing). This is useful if you want to quickly try out different values for your props.
+In addition to the built in types, the `@remotion/zod-types` package also provides [`zColor()`](/docs/zod-types/z-color), including a color picker interface for the Remotion Preview.
diff --git a/packages/docs/docs/ssr.md b/packages/docs/docs/ssr.md
index f5ffb9e55b..f890e13b96 100644
--- a/packages/docs/docs/ssr.md
+++ b/packages/docs/docs/ssr.md
@@ -15,7 +15,7 @@ The easiest and fastest way to render videos in the cloud is to use [`@remotion/
## Render a video using Node.JS APIs
-The NPM package `@remotion/renderer` provides you with an API for rendering the videos programmatically. You can make a video in three steps:
+The NPM package `@remotion/renderer` provides you with an API for rendering media programmatically. You can make a video in three steps:
<Step>1</Step> Creating a <a href="/docs/terminology#bundle">Remotion Bundle</a><br/>
<Step>2</Step> Select the composition to render and calculate its metadata<br/>
diff --git a/packages/docs/docs/visual-editing.md b/packages/docs/docs/visual-editing.md
index 7972e47bb2..65e5bf28f3 100644
--- a/packages/docs/docs/visual-editing.md
+++ b/packages/docs/docs/visual-editing.md
@@ -10,7 +10,7 @@ To edit props visually, first register a [`schema`](/docs/composition#schema) wi
## Opening the props editor
To open the props editor, press the <svg style={{width: 20, verticalAlign:"middle", marginLeft: 4, marginRight: 4}} viewBox="0 0 100 100" fill="transparent"><rect x="3" y="3" width="94" height="94" rx="7" stroke="var(--ifm-font-color-base)" strokeWidth="6"/><path d="M59 91.5V8.5C59 4.63401 62.134 1.5 66 1.5H92C95.866 1.5 99 4.63401 99 8.5V91.5C99 95.366 95.866 98.5 92 98.5H66C62.134 98.5 59 95.366 59 91.5Z" fill="var(--ifm-font-color-base)" stroke="var(--ifm-font-color-base)"/></svg>
-icon in the top right corner of the Remotion Preview to open the right sidebar. Alternatively, press <kbd>Cmd/Ctrl</kbd> + <kbd>B</kbd> to toggle the sidebar. Select the <code>Props</code> tab.
+icon in the top right corner of the Remotion Preview to open the right sidebar. Alternatively, press <kbd>Cmd/Ctrl</kbd> + <kbd>J</kbd> to toggle the sidebar. Select the <code>Props</code> tab.
## Editing props
@@ -26,7 +26,7 @@ Controls are implemented for:
- `z.number()`
- `z.boolean()`
- `z.array()`
-- `z.union()` (only with two types, one of them being `z.null()` or `z.undefined()`)
+- `z.union()` (only unions of two types, one of them being `z.null()` or `z.undefined()`)
- `z.optional()`
- `z.nullable()`
- `z.enum()`