From cd4fd521009dfe04eb81f95a29b71656520931ee Mon Sep 17 00:00:00 2001 From: Gianni Ferullo Date: Sat, 3 Aug 2024 14:47:55 -0400 Subject: [PATCH] option to hide the title --- packages/react-components/src/components/video/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-components/src/components/video/index.tsx b/packages/react-components/src/components/video/index.tsx index 9de09b8d..54d00510 100644 --- a/packages/react-components/src/components/video/index.tsx +++ b/packages/react-components/src/components/video/index.tsx @@ -15,6 +15,8 @@ type Props = { controls?: boolean // if controls is true, hides progress bar hideProgressBar?: boolean + // if controls is true, hides the title + hideTitle?: boolean // if controls is true, hides mute hideMute?: boolean // hide attribution @@ -112,6 +114,7 @@ const VideoPlayer = (props: ComponentProps) => { hideMute, hideAttribution, hideProgressBar, + hideTitle, className, persistentControls, gif, @@ -193,7 +196,7 @@ const VideoPlayer = (props: ComponentProps) => { {showControls && } - {isLargePlayer && ( + {!hideTitle && isLargePlayer && ( { e.preventDefault()