--- name: remotion-interactivity description: Structure Remotion markup for interactivity metadata: tags: remotion, interactivity, studio, visual mode --- By writing Remotion markup in a specific way, the Remotion Studio is able to recognize the structure of the code and makes it interactive: - Allowing items to be selected by clicking on them - Allowing drag+drop, resizing and rotation - Editing the CSS styles - Making keyframes and easing values editable If the markup is too complex for the Studio to make it interactive, then the values become grayed out. ## Make an HTML element interactive using `Interactive` Every HTML and SVG element such as `
` can be turned interactive using `Interactive`: ```tsx title="Interactive elements" Hello ``` This allows styles and keyframes to be set in the Studio. Be sensible, if a component has many elements, the timeline might get messy. ## Give interactive elements a descriptive name Add a `name` prop to elements to make them easily identifyable. ```tsx title="Interactive names" <> Launch day