Timeline Editor
A video editor drops clips onto a timeline, scrubs the preview, then exports with a progress panel. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/timeline-editorUsage
// src/Root.tsx
import { Composition } from "remotion";
import { TimelineEditor } from "@/components/remocn/timeline-editor";
const TimelineEditorScene = () => (
<TimelineEditor
projectName="Launch video"
title="Meet Acme"
audioName="soundtrack.wav"
/>
);
export const RemotionRoot = () => (
<Composition
id="TimelineEditor"
component={TimelineEditorScene}
durationInFrames={720}
fps={60}
width={1280}
height={720}
/>
);A video editor window drops up to three clips onto the V1 track one by one, then a title clip onto V2 and an audioName clip onto A1. A playhead scrubs through the monitor, then the cursor clicks Export and a progress panel finishes on Export complete. Pass clips (name, seconds, built-in scene), projectName, title and audioName. Ships dark by default and light.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props18
| Prop | Type | Default |
|---|---|---|
| clips | EditorClip[]DEFAULT_CLIPS Up to three clips dragged onto V1: name, seconds, scene | |
| projectName | string"Launch video" Project name in the title bar | |
| title | string"Meet remocn" Text of the title clip that lands on V2 | |
| audioName | string"soundtrack.wav" Name of the audio clip that lands on A1 | |
| tagline | string"Launch videos, built in code" Tagline under the logo in the intro clip. | |
| headline | string"Ship your launch video" Headline of the end-card clip. | |
| url | string"remocn.dev" Link on the end-card clip's second button. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| accent | string"#3B5BFD" Accent color for highlights, buttons and progress | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Hanken Grotesk" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier for the whole timeline | |
| theme | "light" | "dark""dark" Light or dark palette | |
| ground | GshPresetId— gradients.sh preset id for the backdrop shader | |
| groundParams | Partial<GradientParams>— Overrides for the backdrop shader parameters | |
- clipsEditorClip[]
Up to three clips dragged onto V1: name, seconds, scene
Default
DEFAULT_CLIPS - projectNamestring
Project name in the title bar
Default
"Launch video" - titlestring
Text of the title clip that lands on V2
Default
"Meet remocn" - audioNamestring
Name of the audio clip that lands on A1
Default
"soundtrack.wav" - taglinestring
Tagline under the logo in the intro clip.
Default
"Launch videos, built in code" - headlinestring
Headline of the end-card clip.
Default
"Ship your launch video" - urlstring
Link on the end-card clip's second button.
Default
"remocn.dev" - logoReact.ReactNode
Replaces the remocn mark.
- accentstring
Accent color for highlights, buttons and progress
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Hanken Grotesk" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline
Default
1 - theme"light" | "dark"
Light or dark palette
Default
"dark" - groundGshPresetId
gradients.sh preset id for the backdrop shader
- groundParamsPartial<GradientParams>
Overrides for the backdrop shader parameters