Skip to content

Commit

Permalink
option to hide the title
Browse files Browse the repository at this point in the history
  • Loading branch information
giannif committed Aug 3, 2024
1 parent 3ef5f16 commit cd4fd52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-components/src/components/video/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -112,6 +114,7 @@ const VideoPlayer = (props: ComponentProps<typeof VideoWrapper>) => {
hideMute,
hideAttribution,
hideProgressBar,
hideTitle,
className,
persistentControls,
gif,
Expand Down Expand Up @@ -193,7 +196,7 @@ const VideoPlayer = (props: ComponentProps<typeof VideoWrapper>) => {
{showControls && <Gradient $isLargePlayer={isLargePlayer} />}
<Controls $isHovered={showControls}>
<TitleContainer>
{isLargePlayer && (
{!hideTitle && isLargePlayer && (
<Title
onClick={(e) => {
e.preventDefault()
Expand Down

0 comments on commit cd4fd52

Please sign in to comment.