ThatDesignUIOriginalInteractive preview
Video player with custom controls
A video player with a chaptered scrubber and frame-accurate hover previews, captions, speed menu, volume, theater mode, auto-hiding controls and full keyboard shortcuts.
- Category
- Media
- Platform
- Responsive
Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Paused state
Use this component
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/video-player.json2. Use it
Every prop is optionalapp/page.tsx
import VideoPlayer from "@/components/video-player";
export default function Page() {
return <VideoPlayer />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A 16:9 player (18px radius) on near-black: the picture is a drawn sunrise whose colors and sun position follow the playback time; a big white round play button sits in the middle before playback.
- A top gradient shows the title and current chapter; the bottom gradient holds a coral scrubber with buffered range and chapter gaps, and a row of icon buttons: play, back 10, forward 10, volume (slider grows on hover), time, captions, speed and theater.
- Hovering the scrubber shows a 160x90 thumbnail of the actual frame at that time with its timestamp and chapter; captions appear as a dark rounded box above the controls.
How it behaves
- Space or K toggles play; J and L skip 10 seconds; M mutes; C toggles captions.
- Moving over the scrubber shows a preview that changes as you move, and clicking seeks there.
- While playing, the controls fade out after about 2 seconds without movement and return on movement or focus.
- The speed menu is a menu of radio items and the chosen speed shows on its button.



