Skip to content

🎥 Make videos programmatically with React

docs: add rive document

kaf-lamed-beyt82f3e70d6ee1
diff --git a/packages/docs/docs/rive/index.md b/packages/docs/docs/rive/index.md
new file mode 100644
index 0000000000..887bcd6020
--- /dev/null
+++ b/packages/docs/docs/rive/index.md
@@ -0,0 +1,57 @@
+---
+id: rive
+sidebar_label: Overview
+title: "@remotion/rive"
+---
+
+import Tabs from "@theme/Tabs";
+import TabItem from "@theme/TabItem";
+
+This package provides a component for rendering [Rive](https://rive.app) animations in Remotion
+
+## Installation
+
+Install `@remotion/rive`
+
+<Tabs defaultValue="npm" values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'yarn', value: 'yarn', },
+{ label: 'pnpm', value: 'pnpm', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/rive
+```
+
+</TabItem>
+<TabItem value="yarn">
+```bash
+yarn add @remotion/rive
+```
+</TabItem>
+<TabItem value="pnpm">
+```bash
+pnpm i @remotion/rive
+```
+</TabItem>
+</Tabs>
+
+## Props
+
+- `src`: a valid URL of the rive file to load. When it is left empty, the default animation is rendered.
+
+## Usage
+
+```jsx
+import { Rive } from "@remotion/rive";
+
+function App() {
+ return (
+ <div>
+ <Rive src="https://example.com/myAnimation.riv" />
+ </div>
+ );
+}
+```