vimeo-auto-player.tsx

src/components/vimeo-auto-player.tsx
'use client'
import Player from '@vimeo/player'
import { clsx } from 'clsx'
import { useEffect, useRef, useState } from 'react'
import { useInView } from 'react-intersection-observer'
import { state, useSnapshot } from '@/state'
type VimeoAutoPlayerProps = {
videoId: string
className?: string
id?: string
aspectRatio?: string // e.g., "16/9", "4/3", "21/9"
width?: number
height?: number
autoplay?: boolean // Control autoplay behavior
muted?: boolean // Control whether video is muted
controls?: boolean // Show/hide player controls (default: true)
}

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC