RemotionUI
Scenes

Auto Fit Title

Headline that auto-scales to fit safe area.

SceneblocksAdvanced

Install
npx remotion-ui@latest add auto-fit-title

Uses @remotion/layout-utils fitText() and Inter from @remotion/google-fonts.

Live preview
Advanced — installs @remotion/layout-utils and @remotion/google-fonts.

AI usage

Install first, then import the copied source component locally.

AI guide

Install

npx remotion-ui@latest add auto-fit-title

Import after install

@/remotion/scenes/auto-fit-title
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: title, subtitle, maxFontSize, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

import { AutoFitTitle } from "@/remotion/scenes/auto-fit-title";

<AutoFitTitle title="Headlines that always fit" subtitle="Any resolution" />

API Reference

PropTypeDescription
title*stringHeadline text.
subtitlestringOptional subtitle.
maxFontSizenumberMaximum title size in px.

Related