🎥 Make videos programmatically with React
feat(docs): add Lottie TableOfContents
kaf-lamed-beytc78fc724b3b8
diff --git a/packages/docs/components/TableOfContents/lottie.tsx b/packages/docs/components/TableOfContents/lottie.tsxnew file mode 100644index 0000000000..e55830bf7f--- /dev/null+++ b/packages/docs/components/TableOfContents/lottie.tsx@@ -0,0 +1,27 @@+import React from "react";+import { Grid } from "./Grid";+import { TOCItem } from "./TOCItem";++export const TableOfContents = () => {+ return (+ <div>+ <Grid>+ <h1>Functions</h1>+ <TOCItem link="/docs/lottie/getlottiemetadata">+ <strong>getLottieMetadata()</strong>+ <div>Get metadata of a Lottie animation</div>+ </TOCItem>+ <TOCItem link="/docs/staticfile">+ <strong>staticFile()</strong>+ <div>Load Lottie animations from a static file</div>+ </TOCItem>+ <TOCItem link="/docs/lottie/remote">+ <div>Loading Lottie animations from a remote URL</div>+ </TOCItem>+ <TOCItem link="/docs/lottie/lottiefiles">+ <div>Where to find Lottie files</div>+ </TOCItem>+ </Grid>+ </div>+ );+};diff --git a/packages/docs/docs/lottie/index.md b/packages/docs/docs/lottie/index.mdindex f5eb4c375c..dfbdc2efe1 100644--- a/packages/docs/docs/lottie/index.md+++ b/packages/docs/docs/lottie/index.md@@ -7,6 +7,7 @@ title: "@remotion/lottie"import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+import {TableOfContents} from "../../components/TableOfContents/lottie"This package provides a component for displaying [Lottie](http://airbnb.io/lottie/) animations in Remotion.@@ -69,3 +70,11 @@ You can now start using the [`<Lottie>`](/docs/lottie/lottie) component in your## APIs- [`<Lottie>`](/docs/lottie/lottie)++## Functions++<TableOfContents />++## License++MIT