Macro Click
A macro close-up of a site builder: a click publishes, the status flips to Live, and the view pulls back. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/macro-clickUsage
// src/Root.tsx
import { Composition } from "remotion";
import { MacroClick } from "@/components/remocn/macro-click";
const MacroClickScene = () => (
<MacroClick
title="One click. It's live."
url="acme.dev/launch"
heroLine="Ship the launch today."
/>
);
export const RemotionRoot = () => (
<Composition
id="MacroClick"
component={MacroClickScene}
durationInFrames={150}
fps={30}
width={1280}
height={720}
/>
);The camera starts tight on the builder toolbar; the cursor clicks the publish button (publishLabel), which shows busyLabel and then liveLabel, the URL fills in, and the view pulls back to reveal the published hero page. The title headline fades in and a toast closes the beat. Pass title, docTitle, url, heroLine and pages. The hero photo defaults to a file that only exists in the Remocn repo, so pass your own src. Ships dark by default and light.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props24
| Prop | Type | Default |
|---|---|---|
| theme | "dark" | "light""dark" Light or dark palette | |
| accent | string"#3B5BFD" Accent color for highlights, buttons and progress | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" Typeface for the copy. Load the font in your project first. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| title | string"One click. It's live." Headline that fades in after the pull-back | |
| docTitle | string"Launch site" Document name in the builder toolbar | |
| publishLabel | string"Publish" Idle label of the publish button | |
| busyLabel | string"Publishing" Button label while publishing | |
| liveLabel | string"Live" Button label once the site is live | |
| url | string"remocn.dev/launch" Address shown once published | |
| toast | string"Your site is live" Toast text after the site goes live | |
| pages | string[]["Home", "Pricing", "Changelog", "Docs"] Page names in the builder navigation | |
| heroLine | string"Ship the launch today." Hero headline on the published page | |
| heroSub | string"Write the brief, pick the beats and render the film before lunch." Line under the hero headline on the site preview. | |
| ctaLabel | string"Start free" Call to action in the site preview's nav. | |
| inviteLabel | string"Invite" Button next to Publish in the toolbar. | |
| src | string— Hero image URL; default exists only in the Remocn repo | |
| 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. | |
| ground | GshPresetId— gradients.sh preset id for the backdrop shader | |
| groundParams | Partial<GradientParams>— Overrides for the backdrop shader parameters | |
- theme"dark" | "light"
Light or dark palette
Default
"dark" - accentstring
Accent color for highlights, buttons and progress
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist" - logoReact.ReactNode
Replaces the remocn mark.
- titlestring
Headline that fades in after the pull-back
Default
"One click. It's live." - docTitlestring
Document name in the builder toolbar
Default
"Launch site" - publishLabelstring
Idle label of the publish button
Default
"Publish" - busyLabelstring
Button label while publishing
Default
"Publishing" - liveLabelstring
Button label once the site is live
Default
"Live" - urlstring
Address shown once published
Default
"remocn.dev/launch" - toaststring
Toast text after the site goes live
Default
"Your site is live" - pagesstring[]
Page names in the builder navigation
Default
["Home", "Pricing", "Changelog", "Docs"] - heroLinestring
Hero headline on the published page
Default
"Ship the launch today." - heroSubstring
Line under the hero headline on the site preview.
Default
"Write the brief, pick the beats and render the film before lunch." - ctaLabelstring
Call to action in the site preview's nav.
Default
"Start free" - inviteLabelstring
Button next to Publish in the toolbar.
Default
"Invite" - srcstring
Hero image URL; default exists only in the Remocn repo
- scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - groundGshPresetId
gradients.sh preset id for the backdrop shader
- groundParamsPartial<GradientParams>
Overrides for the backdrop shader parameters