mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-02 13:07:46 +00:00
- video-player: Add sources array and poster - avatar-group: Add items array with sample avatars - choicebox: Add options array with sample choices - menu-dock: Add items array with icons from lucide-react These demos were missing required props which caused static export to fail. All demos now have proper sample data.
21 lines
552 B
TypeScript
21 lines
552 B
TypeScript
import { VideoPlayer } from "@/registry/default/ui/video-player"
|
|
|
|
export default function VideoPlayerDemo() {
|
|
const videoSources = [
|
|
{
|
|
src: "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
|
|
type: "video/mp4",
|
|
quality: "720p",
|
|
},
|
|
]
|
|
|
|
return (
|
|
<div className="w-full min-h-[400px] flex items-center justify-center">
|
|
<VideoPlayer
|
|
sources={videoSources}
|
|
poster="https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|