Skip to content

🎥 Make videos programmatically with React

table of contents of player

Jonny Burger98791b3ae998
diff --git a/packages/docs/components/TableOfContents/player.tsx b/packages/docs/components/TableOfContents/player.tsx
new file mode 100644
index 0000000000..12818fd2ce
--- /dev/null
+++ b/packages/docs/components/TableOfContents/player.tsx
@@ -0,0 +1,20 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/player/player">
+ <strong>{"<Player>"}</strong>
+ <div>Embed a Remotion composition in a webapp</div>
+ </TOCItem>
+ <TOCItem link="/docs/player/thumbnail">
+ <strong>{"<Thumbnail>"}</strong>
+ <div>Embed a still in a webapp</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/player/index.md b/packages/docs/docs/player/index.md
index 8f78e6f4f1..85ae5ac34f 100644
--- a/packages/docs/docs/player/index.md
+++ b/packages/docs/docs/player/index.md
@@ -3,6 +3,7 @@ title: "@remotion/player"
---
import { PlayerExampleWithControls } from "../../components/PlayerExampleWithControls.tsx";
+import {TableOfContents} from '../../components/TableOfContents/player';
Using the Remotion Player you can embed Remotion videos in any React app and customize the video content at runtime.
@@ -11,6 +12,10 @@ Using the Remotion Player you can embed Remotion videos in any React app and cus
Play the video, then tweak the parameters below the video.
<PlayerExampleWithControls />
+## Components
+
+<TableOfContents />
+
## See also
- [Installation](/docs/player/installation)
diff --git a/packages/docs/docs/player/installation.md b/packages/docs/docs/player/installation.md
index 9f8975be8f..149709057d 100644
--- a/packages/docs/docs/player/installation.md
+++ b/packages/docs/docs/player/installation.md
@@ -4,6 +4,8 @@ title: Installation
slug: /player/installation
---
+import {TableOfContents} from '../../components/TableOfContents/player';
+
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -49,3 +51,7 @@ Make sure no package version number has a `^` character in front of it as it can
:::
Read the [examples](/docs/player/examples) and [API reference](/docs/player/player) next.
+
+## Components
+
+<TableOfContents />