🎥 Make videos programmatically with React
Docs: Refine Browse Elements Studio guide
Igor Samokhovetsccdd0f103880
diff --git a/packages/docs/docs/studio/browse-elements.mdx b/packages/docs/docs/studio/browse-elements.mdxindex 3b17d1c1c8..31e9f2e4cf 100644--- a/packages/docs/docs/studio/browse-elements.mdx+++ b/packages/docs/docs/studio/browse-elements.mdx@@ -9,19 +9,45 @@ crumb: 'Remotion Studio'## Open Browse Elements-In an editable Studio project, open Browse Elements from either:+<div style={{display: 'flex', flexWrap: 'wrap', gap: 24}}>+ <section style={{display: 'flex', flex: '1 1 300px', flexDirection: 'column'}}>+ <h3>No composition selected</h3>+ <p>+ Select <strong>Browse Elements</strong> on the welcome canvas.+ </p>+ <img src="https://remotion.media/elements/studio/browse-elements-welcome-compact.webp" alt="Browse Elements on the Studio welcome canvas" style={{marginTop: 'auto', width: '100%'}} />+ </section>+ <section style={{display: 'flex', flex: '1 1 300px', flexDirection: 'column'}}>+ <h3>Composition selected</h3>+ <p>+ Select <strong>Browse Elements</strong> in the <strong>Actions</strong> section of the right inspector.+ </p>+ <img src="https://remotion.media/elements/studio/browse-elements-actions.webp" alt="Browse Elements in the Actions section of the Studio inspector" style={{marginTop: 'auto', width: '100%'}} />+ </section>+</div>-- the welcome canvas when no composition is selected-- the **Actions** section in the right inspector when a composition is selected+## Add more libraries-<img src="/img/browse-elements-entry-points.png" alt="Browse Elements on the Studio welcome canvas and in the Actions section of the inspector" />+### In Studio-Choose an Element and click **Use**. Studio asks you to confirm before adding the Element's source code to your project.+Use the **Configure Elements** gear in the library window to manage Element Libraries. If additional libraries are configured, you can also choose **Manage…** from the Browse Elements menu.-## Add more libraries+<img src="https://remotion.media/elements/studio/browse-elements-libraries.webp" alt="Element Libraries and Manage option in the Browse Elements menu" style={{maxWidth: '450px', width: '100%'}} />-Use the **Configure Elements** gear in the library window to manage Element Libraries. If additional libraries are configured, you can also choose **Manage…** from the Browse Elements menu.+### In `remotion.config.ts`++Add an Element Library with [`Config.addElementLibrary()`](/docs/config#addelementlibrary):++```ts twoslash title="remotion.config.ts"+import {Config} from '@remotion/cli/config';+// ---cut---+Config.addElementLibrary({+ url: 'https://example.com/elements',+ displayName: 'Acme Elements',+});+```-Adding an Element Library makes its Elements available to browse. It does not install any Element into your project.+## See also-See the available [third-party Element Libraries](/elements/libraries).+- [Remotion Elements](/elements)+- [Third-party Element Libraries](/elements/libraries)diff --git a/packages/docs/elements/index.mdx b/packages/docs/elements/index.mdxindex 8a7a66ee37..82065f922e 100644--- a/packages/docs/elements/index.mdx+++ b/packages/docs/elements/index.mdx@@ -8,15 +8,9 @@ import {ElementLibrary} from '@site/src/components/Elements/ElementLibrary';# Remotion Elements-Drop-in video building blocks.+Drop-in video building blocks. Make it yours, [interactively](/docs/studio/interactivity) or [with an agent](/docs/ai).-Browse the catalog here or [directly inside Remotion Studio](/docs/studio/browse-elements).--Install one into your codebase and see it appear on your active Studio canvas.--Make it yours, [interactively](/docs/studio/interactivity) or [with an agent](/docs/ai).--You can also add [third-party Element Libraries](/elements/libraries) to Browse Elements in Studio.+Browse the catalog here or [directly inside Remotion Studio](/docs/studio/browse-elements), where you can also add [third-party Element Libraries](/elements/libraries).<ElementLibrary category={null} />diff --git a/packages/docs/static/img/browse-elements-entry-points.png b/packages/docs/static/img/browse-elements-entry-points.pngdeleted file mode 100644index 85e0ede0a7..0000000000Binary files a/packages/docs/static/img/browse-elements-entry-points.png and /dev/null differ