New advertisers: 50% off your first month with code FIRSTMONTHSee slots
remotion-dev avatar

Docs Demo

Step-by-step guide for registering interactive Remotion demos in the docs using @remotion/player.

skills.sh installs
2.6K
GitHub stars
74.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers creating a demo component, registering it in types.ts, adding it to the demos array, and embedding it in MDX
  • Lists required DemoType fields: id, comp, compWidth, compHeight, fps, durationInFrames, autoPlay, and options
  • Supports four interactive control types: numeric, boolean, enum, and string, each passed to the component as inputProps
  • Designed for maintainers of the Remotion docs site who need inline composition demos on documentation pages

Install

$ npx -y skills add remotion-dev/remotion --skill docs-demo -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Adding an Interactive Demo to Docs

Interactive demos render a Remotion composition inline in documentation pages using @remotion/player. They live in packages/docs/components/demos/.

Effect demos are separate: use <EffectsDemo type="effects-..." /> and register them in packages/docs/components/effects-demos/registry.ts with the real effect schema, not the generic <Demo> options array.

Steps

  1. Create a component in packages/docs/components/demos/ (e.g. MyDemo.tsx). It should be a standard React component using Remotion hooks like useCurrentFrame() and useVideoConfig().

  2. Register the demo in packages/docs/components/demos/types.ts:

    • Import the component
    • Export a DemoType object with these fields:
      • id: unique string used in <Demo type="..." />
      • comp: the React component
      • compWidth / compHeight: canvas dimensions (e.g. 1280x720)
      • fps: frame rate (typically 30)
      • durationInFrames: animation length
      • autoPlay: whether it plays automatically
      • options: array of interactive controls (can be empty [])

Details

Repository
github.com/remotion-dev/remotion
Categories
Technical Documentation, Animation & Motion
First seen
May 16, 2026

More from remotion-dev/remotion

All 9

Similar to Docs Demo

More Technical Documentation