{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "video-showcase",
  "title": "Video Showcase",
  "description": "A captioned video block: the player followed by the title, description, facts and actions that give it context inside an article or a course.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [
    "litingyes/blocove/video-player",
    "litingyes/blocove/media-tracks",
    "badge",
    "separator"
  ],
  "files": [
    {
      "path": "src/registry/blocove/blocks/video-showcase.tsx",
      "content": "import type { ReactNode } from 'react'\nimport type { MediaTrack } from '@/components/blocove/media/tracks'\nimport { cn } from 'cn'\nimport { VideoMedia, VideoPlayer } from '@/components/blocove/media/video'\nimport { Badge } from '@/components/ui/badge'\nimport { Separator } from '@/components/ui/separator'\n\nexport interface VideoShowcaseProps {\n  /** The video source. */\n  src: string\n  /** The poster shown before playback starts. */\n  poster?: string\n  /** The title, shown above the player and reported to its interface. */\n  title: string\n  /** Small label above the title, for example the series or category. */\n  eyebrow?: string\n  /** A short description below the title. */\n  description?: string\n  /** Small facts rendered as badges, for example a duration or a date. */\n  meta?: string[]\n  /** Text tracks rendered inside the media element. */\n  tracks?: MediaTrack[]\n  /** Extra actions rendered next to the meta row, usually buttons. */\n  actions?: ReactNode\n  className?: string\n}\n\n/**\n * A captioned video: the player, then the title, description and facts that\n * give it context. Use it for a video inside an article, a course or a\n * changelog entry.\n */\nexport function VideoShowcase({\n  src,\n  poster,\n  title,\n  eyebrow,\n  description,\n  meta,\n  tracks,\n  actions,\n  className,\n}: VideoShowcaseProps) {\n  const hasFooter = Boolean(meta?.length) || Boolean(actions)\n  const hasCaption = Boolean(eyebrow) || Boolean(description)\n\n  return (\n    <figure\n      data-slot=\"video-showcase\"\n      className={cn('flex w-full max-w-2xl flex-col gap-4', className)}\n    >\n      <VideoPlayer title={title} poster={poster}>\n        <VideoMedia src={src} tracks={tracks} />\n      </VideoPlayer>\n\n      {(hasCaption || hasFooter)\n        ? (\n            <figcaption className=\"flex flex-col gap-3\">\n              {hasCaption\n                ? (\n                    <div className=\"flex flex-col gap-1.5\">\n                      {eyebrow\n                        ? (\n                            <div className=\"flex items-center gap-2\">\n                              <Badge variant=\"secondary\">{eyebrow}</Badge>\n                            </div>\n                          )\n                        : null}\n                      <h3 className=\"text-base font-semibold tracking-tight sm:text-lg\">\n                        {title}\n                      </h3>\n                      {description\n                        ? (\n                            <p className=\"text-sm text-muted-foreground\">\n                              {description}\n                            </p>\n                          )\n                        : null}\n                    </div>\n                  )\n                : null}\n\n              {hasFooter\n                ? (\n                    <>\n                      <Separator />\n                      <div className=\"flex flex-wrap items-center justify-between gap-2\">\n                        <div className=\"flex flex-wrap items-center gap-2\">\n                          {meta?.map(item => (\n                            <Badge key={item} variant=\"outline\">\n                              {item}\n                            </Badge>\n                          ))}\n                        </div>\n                        {actions\n                          ? (\n                              <div className=\"flex items-center gap-2\">\n                                {actions}\n                              </div>\n                            )\n                          : null}\n                      </div>\n                    </>\n                  )\n                : null}\n            </figcaption>\n          )\n        : null}\n    </figure>\n  )\n}\n",
      "type": "registry:block",
      "target": "components/blocove/video-showcase.tsx"
    }
  ],
  "categories": [
    "media",
    "block"
  ],
  "type": "registry:block"
}