Video Player

A customizable video component for playing media with controls and responsive styling.

lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/video-player.json

Examples


Dialog

Size

Image

Animation


API Reference

Video Player

PropTypeDefault
sourcesstring-
posterstring-
autoPlaybooleanfalse
controlsbooleantrue
loopbooleanfalse
mutedbooleanautoPlay
playsInlinebooleantrue
preloadnone, metadata, autometadata
widthnumber-
heightnumber-
sizesm, md, lgmd
dialogbooleanfalse
dialogFromtop, bottom, left, righttop