Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Edge Fit
description: "A single huge cream word, 'recaps', fills the frame edge to edge with a caption and logo"
component: edge-fit
vibe: playful
length: 112
useWhen:
- "A rapid word montage where each word fills the frame edge to edge."
- "A closing beat that names the kinds of things you can make, with a caption and logo."
avoidWhen:
- "You want a stacked multi-word slogan — use `chunk-stack`."
- "You want hard slams with condensed caps — use `full-bleed-type`."
askedAs:
- "word fills the whole frame"
- "I want one huge word stretched edge to edge"
- "rapid word montage where each word fills the screen"
- "closing beat naming kinds of outputs with a caption and logo"
- "full width single word"
- "giant cream word frame filling"
---
<ComponentPreview name="edge-fit" />
<InstallBlock name="edge-fit" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { EdgeFit } from "@/components/remocn/edge-fit";
const EdgeFitScene = () => (
<EdgeFit words={["intros", "teasers", "recaps"]} caption="Fresh from the registry" />
);
export const RemotionRoot = () => (
<Composition
id="EdgeFit"
component={EdgeFitScene}
durationInFrames={150}
fps={30}
width={1280}
height={720}
/>
);
```
Each word is fitted to the full frame width and its letters rise in, one word after another, with a caption and logo beneath. Pass `words`, `caption` and your own `logo`; it ships light and dark.
<PropsTable title="Props"
rows={[
{
name: "words",
type: "string[]",
default: "[\"intros\", \"teasers\", \"recaps\"]",
description: "Words shown one at a time, each fitted edge to edge.",
},
{
name: "caption",
type: "string",
default: "\"Fresh from the registry\"",
description: "Small line under the word.",
},
{
name: "logo",
type: "React.ReactNode | null",
description: "Logo node under the word; null hides it.",
},
{
name: "letterGap",
type: "number",
default: "3",
description: "Frames between each letter rising in.",
},
{
name: "hold",
type: "number",
default: "14",
description: "Frames the text holds before the next beat.",
},
{
name: "accent",
type: "string",
description: "Accent colour (any CSS colour).",
},
{
name: "background",
type: "string",
description: "Overrides the theme background colour.",
},
{
name: "speed",
type: "number",
default: "1",
description: "Playback multiplier; above 1 plays faster.",
},
{
name: "theme",
type: "\"dark\" | \"light\"",
default: "\"dark\"",
description: "Colour scheme; ships light and dark.",
},
]}
/>