The Video component displays a video thumbnail with a play button, which opens a modal dialog to play the video. It supports YouTube, Vimeo, and custom video sources.
import Video from "@/components/video";
<Video src="https://www.youtube.com/watch?v=dQw4w9WgXcQ" id="demo-video"> <div className="flex rounded-full border border-gray-200 bg-white p-2 shadow-xl group-hover:shadow-2xl"> <Image src="https://avatars.githubusercontent.com/u/70667104?v=4" className="blur-0 h-10 w-10 rounded-full" width={36} height={36} alt="Watch Demo" /> <div className="ml-2 mr-4 flex flex-col text-left"> <p className="text-sm font-medium text-gray-500">Watch Demo</p> <p className="text-sm text-blue-500">1:57</p> </div> </div> </Video>
Was this page helpful?