Skip to content
Esc
navigateopen⌘Jpreview

code-proof

A framed source excerpt that reveals line by line.

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

Installation

pnpm odori add @odori/code-proof

Source is copied into videos/components/code-proof/ 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
Developer proof
Aspect ratios
16:9 · 1:1
Recommended duration
180 frames · 6s
Minimum duration
90 frames · 3s
Entrance
18 frames
Exit
12 frames
Reduced motion
reveals all lines immediately
Requires
mono font
Content limits
lines ≤ 14, lineLength ≤ 62

Props

PropTypeDefaultRequired
codestringYes
languagestring"tsx"
titlestring
focusOne-based line numbers to emphasize. Other lines dim.number[][]
captionstring