{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-marquee",
  "title": "Testimonials marquee",
  "description": "Customers’ quotes in rows that drift past each other across the page, held while the pointer is over them or a card has focus, and still under reduced motion.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/hold.json",
    "https://kinoui.com/r/marquee.json",
    "https://kinoui.com/r/section-heading.json",
    "https://kinoui.com/r/testimonial-parts.json",
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/testimonials-marquee/testimonials-marquee.tsx",
      "content": "'use client'\n\nimport { useHold } from '@/registry/lib/hold'\nimport { dealRows, MarqueeRow } from '@/registry/lib/marquee'\nimport { SectionHeading } from '@/registry/lib/section-heading'\nimport {\n  TestimonialCard,\n  testimonialsColumnClassName,\n  type TestimonialsSectionProps,\n  testimonialsSectionClassName,\n} from '@/registry/lib/testimonial-parts'\nimport { useId } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * The quotes drift past in rows, each row the other way from the one above,\n * so a page full of praise reads at a glance. It holds still while the\n * pointer is over it, while a card has focus and while it is out of view,\n * and a card that takes focus comes clear of the faded ends. Under reduced\n * motion the rows stand still and scroll sideways instead, so every quote\n * is still in reach.\n *\n * The drift is the `marquee` lib's, which the Logo cloud's marquee shares.\n *\n *   <TestimonialsMarquee\n *     title='Teams plan their week in Kino'\n *     testimonials={[{ value: 'mei', quote: '…', name: 'Mei Lin', role: 'Head of Product', company: 'Tessel' }]}\n *   />\n */\n\ninterface TestimonialsMarqueeProps extends TestimonialsSectionProps {\n  /** How many rows the quotes are dealt into. */\n  rows?: 1 | 2 | 3\n}\n\nfunction TestimonialsMarquee({\n  title,\n  description,\n  eyebrow,\n  heading = 'h2',\n  testimonials,\n  rows = 2,\n  className,\n  ...props\n}: TestimonialsMarqueeProps) {\n  const titleId = useId()\n  const hold = useHold()\n  const dealt = dealRows(testimonials, rows)\n  return (\n    <section\n      data-slot='testimonials-marquee'\n      aria-labelledby={titleId}\n      className={cn(testimonialsSectionClassName, className)}\n      {...props}\n    >\n      <div className={cn(testimonialsColumnClassName, 'flex flex-col pb-10 @3xl:pb-14')}>\n        <SectionHeading\n          id={titleId}\n          eyebrow={eyebrow}\n          title={title}\n          description={description}\n          heading={heading}\n        />\n      </div>\n      {/* The rows run the page's whole width, past the column, and fade at its edges. */}\n      <div className='flex min-w-0 flex-col gap-4 pb-16 @3xl:pb-24' {...hold.handlers}>\n        {dealt.map((row, index) => (\n          <MarqueeRow\n            key={row.map((testimonial) => testimonial.value).join()}\n            label={`Quotes, row ${index + 1} of ${dealt.length}`}\n            reverse={index % 2 === 1}\n            running={hold.running}\n            driftVariable='--testimonials-drift'\n            trackClassName='gap-4 px-(--surface-padding) py-1 @3xl/testimonials:px-10'\n          >\n            {row.map((testimonial) => (\n              <TestimonialCard\n                key={testimonial.value}\n                testimonial={testimonial}\n                // Never wider than the room between the row's faded ends (each 12% of it), so a card with focus fits clear of them.\n                className='w-[min(18rem,76cqw)] shrink-0 @md/testimonials:w-80'\n              />\n            ))}\n          </MarqueeRow>\n        ))}\n      </div>\n    </section>\n  )\n}\n\nexport { TestimonialsMarquee, type TestimonialsMarqueeProps }\n",
      "type": "registry:component",
      "target": "@components/kino/testimonials-marquee/testimonials-marquee.tsx"
    }
  ],
  "type": "registry:block"
}