Skip to content

🎥 Make videos programmatically with React

fix type in IframePlayer documentation

Jonny Burger8e38f8be2f33
diff --git a/packages/docs/docs/miscellaneous/snippets/player-in-iframe.md b/packages/docs/docs/miscellaneous/snippets/player-in-iframe.md
index 46704b75ed..bb21a2c6a8 100644
--- a/packages/docs/docs/miscellaneous/snippets/player-in-iframe.md
+++ b/packages/docs/docs/miscellaneous/snippets/player-in-iframe.md
@@ -33,7 +33,7 @@ const borderNone: React.CSSProperties = {
border: 'none',
};
-const IframedPlayerWithoutRef = <T,>(
+const IframePlayerWithoutRef = <T,>(
props: PlayerProps<T>,
ref: MutableRefObject<PlayerRef>
) => {
@@ -92,7 +92,7 @@ const IframedPlayerWithoutRef = <T,>(
);
};
-export const IframedPlayer = forwardRef(IframedPlayerWithoutRef);
+export const IframePlayer = forwardRef(IframePlayerWithoutRef);
```
## See also