Skip to content
Esc
navigateopen⌘Jpreview

split-layout

Responsive two-up composition for proof and explanation.

The same runtime that renders the export. Scrub to any frame, switch format, and edit the fixture props.

Installation

pnpm odori add @odori/split-layout

Source is copied into videos/components/split-layout/ and belongs to your repository. odori diff compares it with upstream later; odori update applies the change you accept. It has no registry dependencies.

Timing contract

Every registry component declares how it behaves in time.odori test fails a cut that violates these.

Family
Foundation
Aspect ratios
16:9 · 9:16 · 1:1
Recommended duration
120 frames · 4s
Minimum duration
60 frames · 2s
Entrance
44 frames
Exit
0 frames
Reduced motion
both panels fade without travel
Requires
sans font
Content limits
title ≤ 48, detail ≤ 96

Props

PropTypeDefaultRequired
titlestringYes
detailstring
childrenThe proof side: code, a product frame, a chart.ReactNode
sideWhich side the words sit on in a wide format."left" | "right""left"
ratioShare of the frame the words take.number0.42