Preet Suthar

Video Player

Component 237

About

A modern, customizable video player component with full controls and keyboard shortcuts.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Video Player to your project and fits it to your theme.

Code

How Video Player is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { VideoPlayer } from "@/components/ui/video-player";

export default function DemoOne() {
  return (
    <>
      <VideoPlayer
        src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
        poster="https://cdn.21st.dev/assets/mirror/e6/e6378fc0368cb38d4ec6554117ce9fda1ad5d71f4cb7ed5a7e242f329aa8bfce.png"
        size="default"
      />
    </>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    845
  • Toolbar

    Toolbar

    818
  • Hero 2

    Hero 2

    818
  • Typewriter Text

    Typewriter Text

    768
  • AI Chat Input

    AI Chat Input

    733
  • Full Screen Signup

    Full Screen Signup

    727