How props get resolved
import {HowPropsFlow} from '../components/HowPropsFlow';
During rendering
Remotion performs an algorithm for determining the props that are being passed to your component when rendering the video. Three factors play a role:
defaultProps
property of your <Composition />
.
inputProps
option, the --props
flag or using the render dialog in the Remotion Studio.
calculateMetadata()
may be used to dynamically transform the props, as well as the metadata of the composition.
The following diagram shows how the props get resolved:
In the Remotion Studio
In the Remotion Studio, the props are resolved in a similar way, but with a few differences:
The following rules stay the same, which you should be aware of:
--props
flag, this data will take priority over the default props, including modifications in the sidebar. It is not recommended to pass input props to the Studio.
calculateMetadata()
.