-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideo_component_usage.txt
More file actions
41 lines (38 loc) · 965 Bytes
/
video_component_usage.txt
File metadata and controls
41 lines (38 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { YouTubeVideo } from '@/components/ui/video';
// Basic usage
export function BasicVideo() {
return (
<YouTubeVideo
videoId="dQw4w9WgXcQ"
title="Never Gonna Give You Up"
/>
);
}
// With custom overlay
export function VideoWithOverlay() {
return (
<YouTubeVideo
videoId="dQw4w9WgXcQ"
size="lg"
overlay={
<div className="absolute bottom-0 left-0 p-4 bg-black/50 w-full">
<h3 className="text-white font-medium">Video title with custom overlay</h3>
</div>
}
/>
);
}
// Full width responsive video in a card
export function ResponsiveCardVideo() {
return (
<div className="p-4 border rounded-lg shadow">
<h2 className="text-xl font-bold mb-4">Featured Video</h2>
<YouTubeVideo
videoId="dQw4w9WgXcQ"
size="full"
className="mb-4"
/>
<p className="text-muted-foreground">Video description goes here...</p>
</div>
);
}