Video Player

Live Demos Hub
GitHub ↗

Video Player

Interactive production-grade hypermedia component for HTMXUI.

Interactive Preview

HTML Source

<!-- 
  Component: video-player.html
  Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
  Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }"  class="relative overflow-hidden rounded-lg border border-border bg-black aspect-video flex items-center justify-center group">
  <video src="{video_url}" class="w-full h-full object-cover" controls preload="metadata"></video>
</div>