Skip to content

🎥 Make videos programmatically with React

Docs: Link Sequence timing to timing guide

JonnyBurgerafe740b6a196
diff --git a/packages/docs/docs/sequence.mdx b/packages/docs/docs/sequence.mdx
index add441ce6d..9f4e6f2a46 100644
--- a/packages/docs/docs/sequence.mdx
+++ b/packages/docs/docs/sequence.mdx
@@ -14,30 +14,7 @@ const BlueSquare: React.FC = () => <div></div>
`<Sequence>` is the base component for placing content on the timeline. It provides timing props such as `from`, `durationInFrames` and `trimBefore`.
-To give a custom component these props, wrap it with [`Interactive.withSchema()`](/docs/interactive-with-schema) and set `wrapInSequence: true`. The wrapper uses `<Sequence>` internally, so you can set timing on the component itself:
-
-```tsx twoslash title="MyTrailer.tsx"
-import type React from 'react';
-import {Interactive, useVideoConfig} from 'remotion';
-
-const IntroInner: React.FC<{style?: React.CSSProperties}> = ({style}) => (
- <div style={style}>Intro</div>
-);
-
-export const Intro = Interactive.withSchema({
- Component: IntroInner,
- componentName: '<Intro>',
- schema: {},
- wrapInSequence: true,
-});
-
-export const MyTrailer = () => {
- const {fps} = useVideoConfig();
- return <Intro durationInFrames={30} premountFor={fps} />;
-};
-```
-
-`<Intro>` appears from frame 0 through frame 29. It also accepts other [timing props](/docs/timing), such as `from` and `playbackRate`.
+To give a custom component these props, wrap it with [`Interactive.withSchema()`](/docs/interactive-with-schema) and set `wrapInSequence: true`. The wrapper uses `<Sequence>` internally, so you can set timing on the component itself. See [Timing and trimming](/docs/timing) for examples.
## Using `<Sequence>` directly