π₯ Make videos programmatically with React
Skills: Prefer inline text for fixed copy (#9761)
Jonny Burgerd3ec0e63672f
diff --git a/packages/skills/skills/remotion-interactivity/SKILL.md b/packages/skills/skills/remotion-interactivity/SKILL.mdindex 74ea9695b6..9191566ce6 100644--- a/packages/skills/skills/remotion-interactivity/SKILL.md+++ b/packages/skills/skills/remotion-interactivity/SKILL.md@@ -26,6 +26,19 @@ Every HTML and SVG element such as `<div>` can be turned interactive using `InteThis allows styles and keyframes to be set in the Studio. Be sensible, if a component has many elements, the timeline might get messy.+## Prefer inline text++If text is fixed and only used once, write it directly inside the interactive element instead of extracting it into a constant.++```tsx title="Inline text"+// π Fixed copy stays editable+<Interactive.Div name="Title">+ Remotion Best Practices+</Interactive.Div>+```++Use a prop or variable only when the text is dynamic or reused.+## Give interactive elements a descriptive nameAdd a `name` prop to elements to make them easily identifyable.