
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
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
DemoTypefields:id,comp,compWidth,compHeight,fps,durationInFrames,autoPlay, andoptions - Supports four interactive control types:
numeric,boolean,enum, andstring, each passed to the component asinputProps - 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 -yInstalls 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
-
Create a component in
packages/docs/components/demos/(e.g.MyDemo.tsx). It should be a standard React component using Remotion hooks likeuseCurrentFrame()anduseVideoConfig(). -
Register the demo in
packages/docs/components/demos/types.ts:- Import the component
- Export a
DemoTypeobject with these fields:id: unique string used in<Demo type="..." />comp: the React componentcompWidth/compHeight: canvas dimensions (e.g. 1280x720)fps: frame rate (typically 30)durationInFrames: animation lengthautoPlay: whether it plays automaticallyoptions: 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 9Similar to Docs Demo
More Technical Documentation
writing-docsremotion-dev/remotion2.9K installsDocumentation authoring guide for Remotion, covering MDX pages, frontmatter, sidebar placement, and style rules.
storybook-component-documentationthebushidocollective/han166 installsTurns Storybook stories and JSDoc into auto-generated component docs using autodocs, MDX pages, and prop annotations.
ui-demoaffaan-m/ecc6.3K installsWalkthrough-style skill that records polished web UI demo videos with Playwright and an injected cursor.
remotion-markupremotion-dev/skills349.7K installsRemotion markup guidelines for animation, media, timing, and visual effects in React compositions.
fumadocs-mdx-structuretheorcdev/8bitcn-ui272 installsGuide for writing MDX documentation pages for 8-bit components in Fumadocs, with frontmatter, imports, and component previews.