Skip to content

🎥 Make videos programmatically with React

noise docs: table of contents

George Satellite22cf83b79fcf
diff --git a/packages/docs/components/TableOfContents/noise.tsx b/packages/docs/components/TableOfContents/noise.tsx
new file mode 100644
index 0000000000..32836ef776
--- /dev/null
+++ b/packages/docs/components/TableOfContents/noise.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/noise/create-noise-2d">
+ <strong>createNoise2d()</strong>
+ <div>Create 2D noise</div>
+ </TOCItem>
+ <TOCItem link="/docs/noise/create-noise-3d">
+ <strong>createNoise3d()</strong>
+ <div>Create 3D noise</div>
+ </TOCItem>
+ <TOCItem link="/docs/noise/create-noise-4d">
+ <strong>createNoise4d()</strong>
+ <div>Create 4D noise</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/noise/index.md b/packages/docs/docs/noise/index.md
index 673e49bca8..b51cbfe980 100644
--- a/packages/docs/docs/noise/index.md
+++ b/packages/docs/docs/noise/index.md
@@ -9,6 +9,7 @@ Utility functions that create a noise effect.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
+import {TableOfContents} from '../../components/TableOfContents/noise';
<Tabs
defaultValue="npm"
@@ -45,7 +46,8 @@ yarn add @remotion/noise
## Functions
-<!-- TODO: add functions reference -->
+<!-- TODO: confirm the references work -->
+<TableOfContents/>
## License