Card Push Line

A headline lands, then the camera pushes in on a prompt card that types a slash command and prompt. A free, MIT-licensed Remotion UI block.

Installation
$ pnpm dlx shadcn@latest add @remocn/card-push-line

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { CardPushLine } from "@/components/remocn/card-push-line";
 
const CardPushLineScene = () => (
  <CardPushLine
    line="You can just write it"
    command="/launch-video"
    prompt="a teaser for the 2.0 release"
    attachName="release-notes-2.0.md"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="CardPushLine"
    component={CardPushLineScene}
    durationInFrames={288}
    fps={60}
    width={1280}
    height={720}
  />
);

The line headline lands word by word, then a prompt card pushes in. It types the command as a chip, attaches a file tile and types the prompt until the send button arms. Pass your own line, command, prompt and attachName; 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.

Props19

PropTypeDefault
line
string"You can just write it"

Headline shown above the card.

command
string"/launch-video"

Slash command typed as a chip.

prompt
string"a teaser for the 2.0 release"

Request typed after the command.

placeholder
string"Describe your launch…"

Placeholder text shown before typing starts.

modelLabel
string"Remocn 1"

Label of the model selector in the card toolbar.

chipLabel
string"Brand kit"

Label of the chip in the card toolbar.

attachName
string"release-notes-2.0.md"

File name shown on the attachment tile.

attachMeta
string"Markdown · 18 KB"

Meta text under the attachment name.

accent
string—

Accent color. Defaults depend on theme.

ink
string—

Text color override.

background
string—

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

theme
"dark" | "light""dark"

Color scheme. Ships light and dark.

ground
GshPresetId—

Shader preset id for the animated background.

groundParams
Partial<GradientParams>—

Partial shader parameters that override the ground preset.

fontFamily
string"Geist"

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

stagger
number3

Frames between words as the line rises in.

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.

  • linestring

    Headline shown above the card.

    Default"You can just write it"

  • commandstring

    Slash command typed as a chip.

    Default"/launch-video"

  • promptstring

    Request typed after the command.

    Default"a teaser for the 2.0 release"

  • placeholderstring

    Placeholder text shown before typing starts.

    Default"Describe your launch…"

  • modelLabelstring

    Label of the model selector in the card toolbar.

    Default"Remocn 1"

  • chipLabelstring

    Label of the chip in the card toolbar.

    Default"Brand kit"

  • attachNamestring

    File name shown on the attachment tile.

    Default"release-notes-2.0.md"

  • attachMetastring

    Meta text under the attachment name.

    Default"Markdown · 18 KB"

  • accentstring

    Accent color. Defaults depend on theme.

  • inkstring

    Text color override.

  • backgroundstring

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

  • theme"dark" | "light"

    Color scheme. Ships light and dark.

    Default"dark"

  • groundGshPresetId

    Shader preset id for the animated background.

  • groundParamsPartial<GradientParams>

    Partial shader parameters that override the ground preset.

  • fontFamilystring

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

    Default"Geist"

  • staggernumber

    Frames between words as the line rises in.

    Default3

  • 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