remotion-markup
Structure Remotion scenes with markup patterns for layout, typography, and reusable video UI.
Install
npx skills add https://github.com/remotion-dev/skills --skill remotion-markup- metadata
- tags: parameters, zod, schema
To make a video parametrizable, a Zod schema can be added to a composition.
First, install zod in the version that matches Remotion:
Then, a Zod schema can be defined alongside the component:
In the root file, the schema can be passed to the composition:
Now, the user can edit the parameter visually in the sidebar.
All schemas that are supported by Zod are supported by Remotion.
Remotion requires that the top-level type is a z.object(), because the collection of props of a React component is always an object.
Color picker
For adding a color picker, use zColor() from @remotion/zod-types.
If it is not installed, use the following command:
Then import zColor from @remotion/zod-types:
Then use it in the schema: