Macro Tab Name

A macro close-up of a document tab where a cursor clicks in and the tab name types out. A free, MIT-licensed Remotion UI block.

Installation
$ pnpm dlx shadcn@latest add @remocn/macro-tab-name

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MacroTabName } from "@/components/remocn/macro-tab-name";
 
const MacroTabNameScene = () => (
  <MacroTabName
    name="Launch Assets"
    path={["Marketing", "Launch week"]}
    docMeta="Edited 2 min ago · 14 files"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MacroTabName"
    component={MacroTabNameScene}
    durationInFrames={216}
    fps={60}
    width={1280}
    height={720}
  />
);

The camera starts in macro on a document tab. A cursor clicks it, the name types in character by character, a brief spinner shows the save, and the tab resolves into the finished title over a breadcrumb and meta line. Pass your own name, path and docMeta; it ships light and dark through theme.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props17

PropTypeDefault
theme
"dark" | "light""dark"

Color scheme. Ships light and dark.

accent
string"#3B5BFD"

Accent color for the focus ring and spinner.

name
string"Launch Assets"

Text typed into the tab, also the resolved document title.

neighbors
string[]["Changelog", "Pricing"]

Names of the sibling tabs shown to the left; last two used.

path
string[]["Marketing", "Launch week"]

Breadcrumb segments shown above the document title.

docMeta
string"Edited 2 min ago · 14 files"

Meta line under the title, such as last edited time.

docBody
string[]—

Body lines of the document; portrait shows all, landscape the first.

placeholder
string"Untitled"

Tab and title text before the name resolves.

stagger
number3

Frames between typed letters.

ground
GshPresetId—

Shader preset id for the animated background.

groundParams
Partial<GradientParams>—

Partial shader parameters that override the ground preset.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

ink
string—

Text color; overrides the theme ink.

fontFamily
string"Inter Tight"

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"dark" | "light"

    Color scheme. Ships light and dark.

    Default"dark"

  • accentstring

    Accent color for the focus ring and spinner.

    Default"#3B5BFD"

  • namestring

    Text typed into the tab, also the resolved document title.

    Default"Launch Assets"

  • neighborsstring[]

    Names of the sibling tabs shown to the left; last two used.

    Default["Changelog", "Pricing"]

  • pathstring[]

    Breadcrumb segments shown above the document title.

    Default["Marketing", "Launch week"]

  • docMetastring

    Meta line under the title, such as last edited time.

    Default"Edited 2 min ago · 14 files"

  • docBodystring[]

    Body lines of the document; portrait shows all, landscape the first.

  • placeholderstring

    Tab and title text before the name resolves.

    Default"Untitled"

  • staggernumber

    Frames between typed letters.

    Default3

  • groundGshPresetId

    Shader preset id for the animated background.

  • groundParamsPartial<GradientParams>

    Partial shader parameters that override the ground preset.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • inkstring

    Text color; overrides the theme ink.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Inter Tight"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1