Command Palette
Search for a command to run...
Loading component...
Video player
An interactive video player component with a hover effect and modal popup. Features a video thumbnail with a play button overlay that follows the cursor, and opens a full-screen video player modal with custom controls using media-chrome.
Dependencies
Interaction Type
Hover to see the play button follow your cursor | |
Click to open the video player modal | |
Watch video player with custom controls |
with shacn cli3.0
//components.json
"registries": {
"@skiper-ui": "https://skiper-ui.com//registry/{name}.json"
}
npx shadcn add @skiper-ui/skiper67
OR with old shacncli
npx shadcn@latest add https://skiper-ui.com/registry/skiper67.json
How to use
import { VideoPlayer, VideoPlayerContent, VideoPlayerControlBar, VideoPlayerPlayButton, VideoPlayerTimeRange, VideoPlayerMuteButton, } from "@/components/v1/skiper67"; const VideoPlayerExample = () => { return ( <VideoPlayer style={{ width: "100%", height: "100%" }}> <VideoPlayerContent src="/showreel/skiper-ui-showreel.mp4" autoPlay slot="media" className="w-full object-cover" /> <VideoPlayerControlBar className="absolute bottom-0 left-1/2 flex w-full max-w-7xl -translate-x-1/2 items-center justify-center px-5"> <VideoPlayerPlayButton className="h-4 bg-transparent" /> <VideoPlayerTimeRange className="bg-transparent" /> <VideoPlayerMuteButton className="size-4 bg-transparent" /> </VideoPlayerControlBar> </VideoPlayer> ); };
Sub components | Description |
---|---|
<VideoPlayer /> | Main video player container component |
<VideoPlayerContent /> | Video element with media-chrome integration |
<VideoPlayerControlBar /> | Container for video control buttons |
<VideoPlayerPlayButton /> | Play/pause button control |
<VideoPlayerTimeRange /> | Video timeline scrubber control |
<VideoPlayerMuteButton /> | Mute/unmute button control |
Props | Description |
---|---|
style | Style object for the video player container |
className | Additional CSS classes |
Source code
Click on the top right to view the source code
Keep in mind
Most components here are recreations of the best out there. I don't claim to be the original creator. This is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone, but if I missed something, let me know.
Contact
Additionlly, if you find any bug or issue, feel free toDrop a dm.
License & Usage:
- Free to use and modify in both personal and commercial projects.
- Attribution to Skiper UI is required when using the free version.
- No attribution required with Skiper UI Pro.