jbmui

Scene

  • Layout
  • video player

Full-bleed cream canvas that fills its composition and clips overflow; one per scene.

Loading preview…

Install

npx shadcn@latest add @jbm/scene

Needs the @jbm entry in components.json; see Install once.

Also installs @jbm/tokens.

Usage

A headline on the canvas
import { Scene } from "@/jbm/motion/scene"import { Big } from "@/jbm/ui/big" // install @jbm/big separately<Scene><Big>Una idea a la vez.</Big></Scene>
Centered content
import { Scene } from "@/jbm/motion/scene"<Scene style={{ display: "flex", alignItems: "center", justifyContent: "center", padding: 120 }}>  {children}</Scene>

Props

Stage px
Declared at the documented defaults
Landscape
fill by 1080
Vertical
fill by 1920
Basis

inset: 0 fills the positioned parent, which in a composition is the full stage: 1920×1080 in landscape and 1080×1920 in vertical (stage tokens in lib/tokens.ts).

Absolutely positioned div with inset 0, the canvas background color, and overflow hidden. Place one inside each Remotion Sequence and lay out blocks inside it.

PropTypeDefaultDescription
childrenReact.ReactNoderequiredScene content; absolutely positioned children are placed relative to the scene.
styleReact.CSSPropertiesnoneInline styles merged last, e.g. flex centering or padding.

QA checks

  • Check the canvas covers the full composition in both orientations with no white edge, and content outside it is clipped.
  • The preview is a single still frame; confirm the background is the cream canvas token, not a hard-coded color.