{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "marquee",
  "title": "Marquee",
  "author": "VenusUI",
  "description": "Scrolls content in an endless loop, horizontally or vertically.",
  "files": [
    {
      "path": "registry/default/ui/marquee.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface MarqueeProps extends React.ComponentProps<\"div\"> {\n  /** Scroll right-to-left (default) or the reverse. */\n  reverse?: boolean\n  /** Pause while the pointer is over the marquee. */\n  pauseOnHover?: boolean\n  /** Scroll vertically instead of horizontally. */\n  vertical?: boolean\n  /** How many copies of the children to render. Raise it if gaps appear on wide screens. */\n  repeat?: number\n  /** Time for one full loop, as a CSS duration. */\n  duration?: string\n  /** Space between items, as a CSS length. */\n  gap?: string\n}\n\n/**\n * Scrolls its children in an endless loop. Copies after the first are hidden\n * from assistive technology and can't be focused, so content is read once.\n * Stops moving when the user prefers reduced motion.\n */\nfunction Marquee({\n  className,\n  reverse = false,\n  pauseOnHover = false,\n  vertical = false,\n  repeat = 4,\n  duration = \"40s\",\n  gap = \"1rem\",\n  style,\n  children,\n  ...props\n}: MarqueeProps) {\n  return (\n    <div\n      data-slot=\"marquee\"\n      className={cn(\"group flex gap-(--marquee-gap) overflow-hidden\", vertical ? \"flex-col\" : \"flex-row\", className)}\n      style={{ \"--marquee-duration\": duration, \"--marquee-gap\": gap, ...style } as React.CSSProperties}\n      {...props}\n    >\n      {Array.from({ length: repeat }, (_, index) => (\n        <div\n          key={index}\n          aria-hidden={index > 0 ? true : undefined}\n          inert={index > 0 ? true : undefined}\n          className={cn(\n            \"flex shrink-0 justify-around gap-(--marquee-gap) motion-reduce:animate-none\",\n            vertical ? \"animate-marquee-vertical flex-col\" : \"animate-marquee flex-row\",\n            reverse && \"[animation-direction:reverse]\",\n            pauseOnHover && \"group-hover:[animation-play-state:paused]\"\n          )}\n        >\n          {children}\n        </div>\n      ))}\n    </div>\n  )\n}\n\nexport { Marquee, type MarqueeProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-marquee": "marquee var(--marquee-duration) linear infinite",
      "animate-marquee-vertical": "marquee-vertical var(--marquee-duration) linear infinite"
    }
  },
  "css": {
    "@keyframes marquee": {
      "from": {
        "transform": "translateX(0)"
      },
      "to": {
        "transform": "translateX(calc(-100% - var(--marquee-gap)))"
      }
    },
    "@keyframes marquee-vertical": {
      "from": {
        "transform": "translateY(0)"
      },
      "to": {
        "transform": "translateY(calc(-100% - var(--marquee-gap)))"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "effects",
    "animations"
  ],
  "type": "registry:ui"
}