🎥 Make videos programmatically with React
Call example presentation "Star" presentation
Jonny Burgera9c85e782e56
diff --git a/packages/docs/docs/transitions/presentations/custom.mdx b/packages/docs/docs/transitions/presentations/custom.mdxindex 5c87497dd2..464a4cbf08 100644--- a/packages/docs/docs/transitions/presentations/custom.mdx+++ b/packages/docs/docs/transitions/presentations/custom.mdx@@ -27,7 +27,7 @@ It is an object with a React component (`component`) and React props which are p```tsx twoslash title="custom-presentation.tsx"import type { TransitionPresentationComponentProps } from "@remotion/transitions";-const SlidePresentation: React.FC<+const StarPresentation: React.FC<TransitionPresentationComponentProps<CustomPresentationProps>> = ({ children, presentationDirection, presentationProgress, passedProps }) =>null;@@ -44,7 +44,7 @@ type CustomPresentationProps = {export const customPresentation = (props: CustomPresentationProps,): TransitionPresentation<CustomPresentationProps> => {- return { component: SlidePresentation, props };+ return { component: StarPresentation, props };};```@@ -65,7 +65,7 @@ The `component` is a React component which receives the following props:<br /><br />-```tsx twoslash title="SlidePresentation.tsx"+```tsx twoslash title="StarPresentation.tsx"type CustomPresentationProps = {width: number;height: number;@@ -75,7 +75,7 @@ type CustomPresentationProps = {import type { TransitionPresentationComponentProps } from "@remotion/transitions";import { AbsoluteFill } from "remotion";-const SlidePresentation: React.FC<+const StarPresentation: React.FC<TransitionPresentationComponentProps<CustomPresentationProps>> = ({children,@@ -119,7 +119,7 @@ to <code>"exiting"</code>{" "}<br /><br />-```tsx twoslash title="SlidePresentation.tsx"+```tsx twoslash title="StarPresentation.tsx"import { getBoundingBox, translatePath } from "@remotion/paths";import { makeStar } from "@remotion/shapes";import type { TransitionPresentationComponentProps } from "@remotion/transitions";@@ -131,7 +131,7 @@ export type CustomPresentationProps = {height: number;};-const SlidePresentation: React.FC<+const StarPresentation: React.FC<TransitionPresentationComponentProps<CustomPresentationProps>> = ({children,@@ -207,10 +207,10 @@ type CustomPresentationProps = {export const customPresentation = (props: CustomPresentationProps,): TransitionPresentation<CustomPresentationProps> => {- return { component: SlidePresentation, props };+ return { component: StarPresentation, props };};-const SlidePresentation: React.FC<+const StarPresentation: React.FC<TransitionPresentationComponentProps<CustomPresentationProps>> = ({ children, presentationDirection, presentationProgress, passedProps }) =>null;