{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cast-button",
  "title": "Cast Button",
  "description": "A state-aware button that starts and stops Google Cast playback.",
  "dependencies": [
    "@videojs/react@10.0.0-beta.32",
    "react"
  ],
  "registryDependencies": [
    "@videojs/_resolve-class-name",
    "@videojs/_style-buttons",
    "@videojs/_style-theme",
    "@videojs/button"
  ],
  "files": [
    {
      "path": "ui/files/cast-button/cast-button.tsx",
      "content": "/** @jsxImportSource react */\n\nimport '../styles/buttons.css';\nimport '../styles/theme.css';\nimport { CastButton as CastButtonPrimitive } from '@videojs/react';\nimport { CastEnterIcon as CastEnterIconPrimitive, CastExitIcon as CastExitIconPrimitive } from '@videojs/react/icons';\n\nimport { cn, resolveClassName } from '@/components/videojs/lib/resolve-class-name';\nimport { Button } from '@/components/videojs/ui/button';\n\nexport type CastButtonProps = Omit<CastButtonPrimitive.Props, 'children'>;\n\nexport function CastButton({ className, ...props }: CastButtonProps = {}) {\n  return (\n    <CastButtonPrimitive\n      render={<Button />}\n      className={(state) => cn('media-cast-button', resolveClassName(className, state))}\n      {...props}\n    >\n      <CastEnterIconPrimitive className={cn('media-button-icon', 'media-cast-button-enter-icon')} />\n      <CastExitIconPrimitive className={cn('media-button-icon', 'media-cast-button-exit-icon')} />\n    </CastButtonPrimitive>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/videojs/ui/cast-button.tsx"
    }
  ],
  "meta": {
    "framework": "react",
    "style": "css",
    "role": "component",
    "styling": "css",
    "public": true
  },
  "docs": "Installs `@/components/videojs/ui/cast-button.tsx` for use inside a compatible Video.js Player or Skin.\n\n```tsx\nimport { CastButton } from '@/components/videojs/ui/cast-button';\n\nexport function Controls() {\n  return <CastButton />;\n}\n```",
  "categories": [
    "media",
    "buttons"
  ],
  "type": "registry:ui"
}