Hero Device Assemble

Layered device mockup that snaps together in 3D before the screen wakes up

Installation

$ pnpm dlx shadcn@latest add @remocn/hero-device-assemble

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { HeroDeviceAssemble } from "@/components/remocn/hero-device-assemble";

const HeroDeviceAssembleScene = () => (
  <HeroDeviceAssemble
    device="laptop"
    accentColor="#22c55e"
    assembleStart={0}
  />
);

export const RemotionRoot = () => (
  <Composition
    id="HeroDeviceAssemble"
    component={HeroDeviceAssembleScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

Props

PropTypeDefaultDescription
device
"laptop" | "phone""laptop"Mockup form factor. Phone uses a vertical bezel and skips the chassis base.
accentColor
string"#22c55e"Brand accent applied to the in-screen UI highlights
assembleStart
number0Frame at which the assembly spring kicks off
className
stringOptional className for the outer container