Registry Index

Search the catalog

Type to search items across every indexed registry, or pick a page.

ExampleReactregistry:exampleSelf-contained

Video Player

video-player-demo

A video player demo component

A demo of video-player

registry/8starlabs-ui/examples/video-player-demo.tsxcomponents/8starlabs-ui/examples/video-player-demo.tsx
26 lines
import VideoRoot, {
  VideoViewport,
  VideoControls,
  VideoPlayTrigger,
  VideoFullscreenTrigger,
  VideoProgressBar,
  VideoSoundControl,
  VideoPipTrigger
} from "@/registry/8starlabs-ui/blocks/video-player";

export default function VideoPlayerDemo() {
  return (
    <VideoRoot className="rounded-lg">
      <VideoViewport src="https://vjs.zencdn.net/v/oceans.mp4" />

      <VideoControls className="flex items-center justify-between gap-4">
        <VideoPlayTrigger />
        <VideoSoundControl />
        <VideoProgressBar />
        <VideoPipTrigger />
        <VideoFullscreenTrigger />
      </VideoControls>
    </VideoRoot>
  );
}
@8starlabs-ui

More from @8starlabs-ui

A styled label component

A Base UI tooltip component

A shadcn-compatible button with an optional Stripe-style arrow animation

A video player component

A Base UI dropdown menu component

A partition bar component

A compact date label that displays relative time with an optional UTC tooltip.