Skip to content

🎥 Make videos programmatically with React

Elements: Add component libraries page (#10634)

Igor Samokhovetsb6b2b50a35ac
diff --git a/packages/docs/elements-sidebars.ts b/packages/docs/elements-sidebars.ts
index 9626e82652..03e710ba6c 100644
--- a/packages/docs/elements-sidebars.ts
+++ b/packages/docs/elements-sidebars.ts
@@ -27,6 +27,7 @@ const sidebars: SidebarsConfig = {
collapsible: true,
collapsed: false,
items: [
+ 'libraries',
'contributing',
{
type: 'html',
diff --git a/packages/docs/elements/libraries.mdx b/packages/docs/elements/libraries.mdx
new file mode 100644
index 0000000000..fd21edb057
--- /dev/null
+++ b/packages/docs/elements/libraries.mdx
@@ -0,0 +1,12 @@
+---
+title: Libraries
+sidebar_label: Libraries
+description: Component libraries that integrate with Remotion Studio.
+---
+
+# Libraries
+
+Component libraries that integrate with Remotion Studio through the [Studio Protocol](/docs/studio-protocol).
+
+- [Remotion Elements](/elements) - The official component library maintained by Remotion.
+- [Remocn](https://remocn.dev/docs/components) - A shadcn-style library of production-ready Remotion components for building product demo videos with AI agents.
diff --git a/packages/docs/src/test/elements.test.ts b/packages/docs/src/test/elements.test.ts
index 097ff65298..c1909866b1 100644
--- a/packages/docs/src/test/elements.test.ts
+++ b/packages/docs/src/test/elements.test.ts
@@ -475,7 +475,8 @@ describe('Elements sidebar', () => {
throw new Error('Elements root category must contain sidebar items');
}
- expect(elementsCategory.items.slice(0, 2)).toEqual([
+ expect(elementsCategory.items.slice(0, 3)).toEqual([
+ 'libraries',
'contributing',
{
type: 'html',
@@ -485,7 +486,7 @@ describe('Elements sidebar', () => {
},
]);
- const categories = elementsCategory.items.slice(2);
+ const categories = elementsCategory.items.slice(3);
const expectedCategories = [
{
category: 'backgrounds',