🎥 Make videos programmatically with React
Docs: Revamp parameterized rendering page (#10298)
Jonny Burgere273714f2ea3
diff --git a/packages/docs/docs/parameterized-rendering.mdx b/packages/docs/docs/parameterized-rendering.mdxindex 3498228b25..b5d1004839 100644--- a/packages/docs/docs/parameterized-rendering.mdx+++ b/packages/docs/docs/parameterized-rendering.mdx@@ -6,10 +6,18 @@ sidebar_label: Passing propscrumb: "How To"---+import {TableOfContents} from './parameterized-rendering/TableOfContents';+++Remotion allows for [ingesting](/docs/passing-props), [validating](/docs/schemas), [visually editing](/docs/visual-editing), and transforming data that may be used to parametrize a video.Data may [influence the content](/docs/data-fetching) of the video, or the [metadata](/docs/dynamic-metadata) such as width, height, duration or framerate.+## Table of contents++<TableOfContents />+## High-level overviewRemotion allows the passing of [props](https://react.dev/learn/passing-props-to-a-component) to a React component.@@ -56,15 +64,6 @@ The component may dynamically render content based on the props.See [here](/docs/props-resolution) for a visual explanation and more details of how the resolution process works.-## Table of contents--- [Passing props](/docs/passing-props)-- [Defining a Schema](/docs/schemas)-- [Visual editing](/docs/visual-editing)-- [Data fetching](/docs/data-fetching)-- [Variable metadata](/docs/dynamic-metadata)-- [How props get resolved](/docs/props-resolution)-## See alsoYou can use the [Remotion Player](/docs/player) to display a Remotion component in a React app and dynamically change the content without rendering the video, to create experiences where the content updates in real-time.diff --git a/packages/docs/docs/parameterized-rendering/TableOfContents.tsx b/packages/docs/docs/parameterized-rendering/TableOfContents.tsxnew file mode 100644index 0000000000..86ee39b20d--- /dev/null+++ b/packages/docs/docs/parameterized-rendering/TableOfContents.tsx@@ -0,0 +1,36 @@+import React from 'react';+import {Grid} from '../../components/TableOfContents/Grid';+import {TOCItem} from '../../components/TableOfContents/TOCItem';++export const TableOfContents: React.FC = () => {+ return (+ <div>+ <Grid>+ <TOCItem link="/docs/passing-props">+ <strong>Passing props</strong>+ <div>Pass data to a composition</div>+ </TOCItem>+ <TOCItem link="/docs/schemas">+ <strong>Defining a schema</strong>+ <div>Validate and edit input props</div>+ </TOCItem>+ <TOCItem link="/docs/visual-editing">+ <strong>Visual editing</strong>+ <div>Edit props in Remotion Studio</div>+ </TOCItem>+ <TOCItem link="/docs/data-fetching">+ <strong>Data fetching</strong>+ <div>Fetch data before rendering</div>+ </TOCItem>+ <TOCItem link="/docs/dynamic-metadata">+ <strong>Variable metadata</strong>+ <div>Calculate dimensions, duration, and props</div>+ </TOCItem>+ <TOCItem link="/docs/props-resolution">+ <strong>How props get resolved</strong>+ <div>Understand how Remotion combines props</div>+ </TOCItem>+ </Grid>+ </div>+ );+};diff --git a/packages/docs/static/img/parameterized-rendering-default-props.png b/packages/docs/static/img/parameterized-rendering-default-props.pngnew file mode 100644index 0000000000..9d66f26d4eBinary files /dev/null and b/packages/docs/static/img/parameterized-rendering-default-props.png differ