Chapter 63: Interactive
Core Idea
Interactive exposes HTML and SVG elements that can be visually edited in the Remotion Studio.
Key Concepts
- Components
- Schema helpers
- Interactive.baseSchema<AvailableFrom v="4.0.479" />
- Interactive.transformSchema<AvailableFrom v="4.0.479" />
- Interactive.cropSchema<AvailableFrom v="4.0.500" />
- Interactive.textSchema<AvailableFrom v="4.0.481" />
- Interactive.backgroundSchema<AvailableFrom v="4.0.497" />
- Interactive.borderSchema<AvailableFrom v="4.0.497" />
Code Examples
export const MyComp: React.FC = () => {
return (
<AbsoluteFill>
<Interactive.Div style={{backgroundColor: 'white', padding: 24}}>Hello World</Interactive.Div>
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for Interactive from the official docs.
Key Takeaways
- Understand components when working with Interactive.
- Understand schema helpers when working with Interactive.
- Understand interactive.baseschema<availablefrom v="4.0.479" /> when working with Interactive.
- Understand interactive.transformschema<availablefrom v="4.0.479" /> when working with Interactive.
- Understand interactive.cropschema<availablefrom v="4.0.500" /> when working with Interactive.
Connects To
- Cancel Render: related page in the Hooks & Data APIs section.
- Continue Render: related page in the Hooks & Data APIs section.
- Data Fetching: related page in the Hooks & Data APIs section.