Compositions
Core Primitives
Transitions
Typography
Installation
Install the @editframe/elements package:
$ pnpm add @editframe/elements
Quick Start
Import video components and create compositions:
import { Typewriter } from "@editframe/elements";
import { Composition } from "@editframe/elements/server";
export default function VideoPage() {
return (
<Composition
id="MyVideo"
durationInFrames={120}
fps={30}
width={1920}
height={1080}
>
<Typewriter text="Hello, World!" />
</Composition>
);
}Rendering Videos
Use the Editframe SDK to render your compositions to MP4:
import { Editframe } from "@editframe/sdk";
const editframe = new Editframe({ apiKey: "your-api-key" });
const render = await editframe.renders.create({
compositionId: "MyVideo",
outputFormat: "mp4",
});Next Steps
- Browse the Components gallery
- Explore Typography effects
- Learn about Transitions and scene changes
- Check out full Compositions templates