🎥 Make videos programmatically with React
Elements: Avoid embedded drag handle flicker
Igor Samokhovets6bad95927ca8
diff --git a/packages/docs/src/components/Elements/ElementPage.tsx b/packages/docs/src/components/Elements/ElementPage.tsxindex a8bd4ae5e4..ab14c8de74 100644--- a/packages/docs/src/components/Elements/ElementPage.tsx+++ b/packages/docs/src/components/Elements/ElementPage.tsx@@ -57,7 +57,9 @@ export const ElementPage: React.FC<ElementPageProps> = ({const [isSourceVisible, setIsSourceVisible] = useState(false);const [isBrowserStudioActionVisible, setIsBrowserStudioActionVisible] =useState(false);- const [isEmbeddedInStudio, setIsEmbeddedInStudio] = useState(false);+ const [isEmbeddedInStudio, setIsEmbeddedInStudio] = useState<boolean | null>(+ null,+ );const posterRef = useRef<HTMLImageElement>(null);const sourceId = useId();const {height: previewHeight, width: previewWidth} =diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.tsindex 00979089a0..500c7eb36b 100644--- a/packages/example/remotion.config.ts+++ b/packages/example/remotion.config.ts@@ -14,3 +14,7 @@ Config.addElementLibrary({url: 'https://remocn.dev/docs/typography',displayName: 'Remocn',});+Config.addElementLibrary({+ url: 'http://localhost:3002/elements',+ displayName: 'Local Elements',+});