{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-integrations-carousel","type":"registry:block","title":"Carousel","files":[{"path":"components/blocks/marketing/integrations/carousel.tsx","content":"import { Button } from '@/components/ui/button';\nimport { Card, CardContent } from '@/components/ui/card';\nimport { Badge } from '@/components/ui/badge';\nimport {\n  Carousel,\n  CarouselContent,\n  CarouselItem,\n  type CarouselApi,\n} from '@/components/ui/carousel';\nimport {\n  ExternalLink,\n  Star,\n  Zap,\n  Shield,\n  Clock,\n  ChevronLeft,\n  ChevronRight,\n} from 'lucide-react';\nimport { useState, useEffect } from 'react';\n\nexport default function IntegrationsCarousel() {\n  const [api, setApi] = useState<CarouselApi>();\n  const [canScrollPrev, setCanScrollPrev] = useState(false);\n  const [canScrollNext, setCanScrollNext] = useState(false);\n\n  useEffect(() => {\n    if (!api) {\n      return;\n    }\n\n    const updateSelection = () => {\n      setCanScrollPrev(api.canScrollPrev());\n      setCanScrollNext(api.canScrollNext());\n    };\n\n    updateSelection();\n    api.on('select', updateSelection);\n\n    return () => {\n      api.off('select', updateSelection);\n    };\n  }, [api]);\n\n  const integrations = [\n    {\n      name: 'Stripe',\n      category: 'Payment Processing',\n      description:\n        'Accept payments globally with industry-leading conversion rates and fraud protection.',\n      logo: '/placeholder.svg',\n      rating: 4.9,\n      reviews: 1245,\n      setupTime: '5 min',\n      features: ['Global payments', 'Subscription billing'],\n      type: 'Premium',\n    },\n    {\n      name: 'Slack',\n      category: 'Team Communication',\n      description:\n        'Streamline team collaboration with real-time messaging and workflow automation.',\n      logo: '/placeholder.svg',\n      rating: 4.8,\n      reviews: 987,\n      setupTime: '2 min',\n      features: ['Real-time messaging', 'File sharing', 'Workflow automation'],\n      type: 'Essential',\n    },\n    {\n      name: 'GitHub',\n      category: 'Development',\n      description:\n        'Version control and collaboration platform for modern development teams.',\n      logo: '/placeholder.svg',\n      rating: 4.9,\n      reviews: 2156,\n      setupTime: '3 min',\n      features: ['Git repositories', 'Issue tracking', 'CI/CD workflows'],\n      type: 'Premium',\n    },\n    {\n      name: 'Salesforce',\n      category: 'CRM',\n      description:\n        'Customer relationship management platform with advanced analytics and automation.',\n      logo: '/placeholder.svg',\n      rating: 4.7,\n      reviews: 856,\n      setupTime: '10 min',\n      features: ['Lead management', 'Sales analytics', 'Custom workflows'],\n      type: 'Enterprise',\n    },\n    {\n      name: 'Mailchimp',\n      category: 'Email Marketing',\n      description:\n        'Email marketing automation with powerful segmentation and analytics.',\n      logo: '/placeholder.svg',\n      rating: 4.6,\n      reviews: 743,\n      setupTime: '7 min',\n      features: ['Email automation', 'A/B testing', 'Advanced segmentation'],\n      type: 'Premium',\n    },\n    {\n      name: 'Zapier',\n      category: 'Automation',\n      description:\n        'Connect your apps and automate workflows without any coding required.',\n      logo: '/placeholder.svg',\n      rating: 4.5,\n      reviews: 654,\n      setupTime: '5 min',\n      features: ['5000+ app connections', 'Multi-step workflows'],\n      type: 'Essential',\n    },\n  ];\n\n  const getTypeColor = (type: string) => {\n    switch (type) {\n      case 'Premium':\n        return 'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300';\n      case 'Enterprise':\n        return 'bg-purple-100 text-purple-700 dark:bg-purple-900 dark:text-purple-300';\n      case 'Essential':\n        return 'bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300';\n      default:\n        return 'bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300';\n    }\n  };\n\n  return (\n    <>\n      {/* Integrations Carousel Section */}\n      <div className=\"py-24 lg:py-32\">\n        <div className=\"container mx-auto px-4 md:px-6 2xl:max-w-[1400px]\">\n          {/* Header */}\n          <div className=\"mx-auto max-w-3xl text-center\">\n            <Badge className=\"mb-4\" variant=\"outline\">\n              <Zap className=\"mr-2 h-4 w-4\" />\n              200+ Integrations Available\n            </Badge>\n            <h2 className=\"text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl\">\n              Connect Everything You Need\n            </h2>\n            <p className=\"text-muted-foreground mt-6 text-lg\">\n              Integrate with the tools your team already uses. From payments to\n              productivity, we&apos;ve got you covered with secure, reliable\n              connections.\n            </p>\n          </div>\n\n          {/* Carousel */}\n          <div className=\"relative mt-12\">\n            {/* Header Section */}\n            <div className=\"mb-8 flex items-end justify-between\">\n              <div className=\"flex flex-col-reverse gap-2 md:flex-row md:items-center\">\n                <h3 className=\"text-xl font-semibold\">Featured Integrations</h3>\n                <Badge variant=\"secondary\" className=\"text-xs\">\n                  {integrations.length} Available\n                </Badge>\n              </div>\n              <div className=\"flex gap-2\">\n                <Button\n                  variant=\"outline\"\n                  size=\"sm\"\n                  onClick={() => api?.scrollPrev()}\n                  disabled={!canScrollPrev}\n                >\n                  <ChevronLeft className=\"h-4 w-4\" />\n                </Button>\n                <Button\n                  variant=\"outline\"\n                  size=\"sm\"\n                  onClick={() => api?.scrollNext()}\n                  disabled={!canScrollNext}\n                >\n                  <ChevronRight className=\"h-4 w-4\" />\n                </Button>\n              </div>\n            </div>\n\n            <Carousel\n              setApi={setApi}\n              opts={{\n                align: 'start',\n              }}\n              className=\"\"\n            >\n              <CarouselContent>\n                {integrations.map((integration) => (\n                  <CarouselItem\n                    key={integration.name}\n                    className=\"md:basis-1/2 lg:basis-1/3\"\n                  >\n                    <Card className=\"transition-all hover:shadow-lg\">\n                      <CardContent>\n                        {/* Header with Logo and Type */}\n                        <div className=\"flex items-start justify-between\">\n                          <div className=\"flex items-center gap-4\">\n                            <div className=\"relative h-16 w-16 overflow-hidden rounded-xl\">\n                              <img\n                                src={integration.logo}\n                                alt={`${integration.name} logo`}\n                                className=\"object-cover\"\n                              />\n                            </div>\n                            <div>\n                              <h3 className=\"text-lg font-semibold\">\n                                {integration.name}\n                              </h3>\n                              <p className=\"text-muted-foreground text-sm\">\n                                {integration.category}\n                              </p>\n                            </div>\n                          </div>\n                          <Badge\n                            className={`text-xs ${getTypeColor(integration.type)}`}\n                          >\n                            {integration.type}\n                          </Badge>\n                        </div>\n\n                        {/* Description */}\n                        <p className=\"text-muted-foreground mt-4 text-sm leading-relaxed\">\n                          {integration.description}\n                        </p>\n\n                        {/* Features */}\n                        <div className=\"mt-4\">\n                          <h4 className=\"mb-2 text-sm font-medium\">\n                            Key Features:\n                          </h4>\n                          <div className=\"flex flex-wrap gap-1\">\n                            {integration.features.map((feature) => (\n                              <Badge\n                                key={feature}\n                                variant=\"outline\"\n                                className=\"text-xs\"\n                              >\n                                {feature}\n                              </Badge>\n                            ))}\n                          </div>\n                        </div>\n\n                        {/* Stats */}\n                        <div className=\"mt-6 flex items-center justify-between\">\n                          <div className=\"flex items-center gap-4 text-sm\">\n                            <div className=\"flex items-center gap-1\">\n                              <Star className=\"h-4 w-4 fill-yellow-400 text-yellow-400\" />\n                              <span className=\"font-medium\">\n                                {integration.rating}\n                              </span>\n                              <span className=\"text-muted-foreground\">\n                                ({integration.reviews})\n                              </span>\n                            </div>\n                            <div className=\"flex items-center gap-1\">\n                              <Clock className=\"text-muted-foreground h-4 w-4\" />\n                              <span className=\"text-muted-foreground\">\n                                {integration.setupTime} setup\n                              </span>\n                            </div>\n                          </div>\n                        </div>\n\n                        {/* Action Button */}\n                        <div className=\"mt-6 flex gap-2\">\n                          <Button className=\"flex-1\" size=\"sm\">\n                            <Shield className=\"mr-2 h-4 w-4\" />\n                            Connect Securely\n                          </Button>\n                          <Button variant=\"outline\" size=\"sm\">\n                            <ExternalLink className=\"h-4 w-4\" />\n                          </Button>\n                        </div>\n                      </CardContent>\n                    </Card>\n                  </CarouselItem>\n                ))}\n              </CarouselContent>\n            </Carousel>\n          </div>\n\n          {/* Bottom CTA */}\n          <div className=\"mt-12 text-center\">\n            <Button size=\"lg\">\n              Browse All Integrations\n              <ExternalLink className=\"ml-2 h-4 w-4\" />\n            </Button>\n            <p className=\"text-muted-foreground mt-3 text-sm\">\n              Can&apos;t find what you need?{' '}\n              <a href=\"#\" className=\"underline\">\n                Request an integration\n              </a>\n            </p>\n          </div>\n        </div>\n      </div>\n      {/* End Integrations Carousel Section */}\n    </>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/integrations/carousel.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/card.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Card({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n  return (\n    <div\n      data-slot=\"card\"\n      data-size={size}\n      className={cn(\n        \"group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-header\"\n      className={cn(\n        \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-title\"\n      className={cn(\n        \"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-description\"\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-action\"\n      className={cn(\n        \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-content\"\n      className={cn(\"px-6 group-data-[size=sm]/card:px-4\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-footer\"\n      className={cn(\n        \"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Card,\n  CardHeader,\n  CardFooter,\n  CardTitle,\n  CardAction,\n  CardDescription,\n  CardContent,\n}\n","type":"registry:ui","target":"components/ui/card.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"},{"path":"components/ui/carousel.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport useEmblaCarousel, {\n  type UseEmblaCarouselType,\n} from \"embla-carousel-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\"\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\ntype CarouselProps = {\n  opts?: CarouselOptions\n  plugins?: CarouselPlugin\n  orientation?: \"horizontal\" | \"vertical\"\n  setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n  carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n  api: ReturnType<typeof useEmblaCarousel>[1]\n  scrollPrev: () => void\n  scrollNext: () => void\n  canScrollPrev: boolean\n  canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n  const context = React.useContext(CarouselContext)\n\n  if (!context) {\n    throw new Error(\"useCarousel must be used within a <Carousel />\")\n  }\n\n  return context\n}\n\nfunction Carousel({\n  orientation = \"horizontal\",\n  opts,\n  setApi,\n  plugins,\n  className,\n  children,\n  ...props\n}: React.ComponentProps<\"div\"> & CarouselProps) {\n  const [carouselRef, api] = useEmblaCarousel(\n    {\n      ...opts,\n      axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n    },\n    plugins\n  )\n  const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n  const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n  const onSelect = React.useCallback((api: CarouselApi) => {\n    if (!api) return\n    setCanScrollPrev(api.canScrollPrev())\n    setCanScrollNext(api.canScrollNext())\n  }, [])\n\n  const scrollPrev = React.useCallback(() => {\n    api?.scrollPrev()\n  }, [api])\n\n  const scrollNext = React.useCallback(() => {\n    api?.scrollNext()\n  }, [api])\n\n  const handleKeyDown = React.useCallback(\n    (event: React.KeyboardEvent<HTMLDivElement>) => {\n      if (event.key === \"ArrowLeft\") {\n        event.preventDefault()\n        scrollPrev()\n      } else if (event.key === \"ArrowRight\") {\n        event.preventDefault()\n        scrollNext()\n      }\n    },\n    [scrollPrev, scrollNext]\n  )\n\n  React.useEffect(() => {\n    if (!api || !setApi) return\n    setApi(api)\n  }, [api, setApi])\n\n  React.useEffect(() => {\n    if (!api) return\n    onSelect(api)\n    api.on(\"reInit\", onSelect)\n    api.on(\"select\", onSelect)\n\n    return () => {\n      api?.off(\"select\", onSelect)\n    }\n  }, [api, onSelect])\n\n  return (\n    <CarouselContext.Provider\n      value={{\n        carouselRef,\n        api: api,\n        opts,\n        orientation:\n          orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\n        scrollPrev,\n        scrollNext,\n        canScrollPrev,\n        canScrollNext,\n      }}\n    >\n      <div\n        onKeyDownCapture={handleKeyDown}\n        className={cn(\"relative\", className)}\n        role=\"region\"\n        aria-roledescription=\"carousel\"\n        data-slot=\"carousel\"\n        {...props}\n      >\n        {children}\n      </div>\n    </CarouselContext.Provider>\n  )\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  const { carouselRef, orientation } = useCarousel()\n\n  return (\n    <div\n      ref={carouselRef}\n      className=\"overflow-hidden\"\n      data-slot=\"carousel-content\"\n    >\n      <div\n        className={cn(\n          \"flex\",\n          orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\",\n          className\n        )}\n        {...props}\n      />\n    </div>\n  )\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n  const { orientation } = useCarousel()\n\n  return (\n    <div\n      role=\"group\"\n      aria-roledescription=\"slide\"\n      data-slot=\"carousel-item\"\n      className={cn(\n        \"min-w-0 shrink-0 grow-0 basis-full\",\n        orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CarouselPrevious({\n  className,\n  variant = \"outline\",\n  size = \"icon-sm\",\n  ...props\n}: React.ComponentProps<typeof Button>) {\n  const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n  return (\n    <Button\n      data-slot=\"carousel-previous\"\n      variant={variant}\n      size={size}\n      className={cn(\n        \"absolute touch-manipulation rounded-full\",\n        orientation === \"horizontal\"\n          ? \"top-1/2 -left-12 -translate-y-1/2\"\n          : \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\n        className\n      )}\n      disabled={!canScrollPrev}\n      onClick={scrollPrev}\n      {...props}\n    >\n      <ChevronLeftIcon />\n      <span className=\"sr-only\">Previous slide</span>\n    </Button>\n  )\n}\n\nfunction CarouselNext({\n  className,\n  variant = \"outline\",\n  size = \"icon-sm\",\n  ...props\n}: React.ComponentProps<typeof Button>) {\n  const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n  return (\n    <Button\n      data-slot=\"carousel-next\"\n      variant={variant}\n      size={size}\n      className={cn(\n        \"absolute touch-manipulation rounded-full\",\n        orientation === \"horizontal\"\n          ? \"top-1/2 -right-12 -translate-y-1/2\"\n          : \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\n        className\n      )}\n      disabled={!canScrollNext}\n      onClick={scrollNext}\n      {...props}\n    >\n      <ChevronRightIcon />\n      <span className=\"sr-only\">Next slide</span>\n    </Button>\n  )\n}\n\nexport {\n  type CarouselApi,\n  Carousel,\n  CarouselContent,\n  CarouselItem,\n  CarouselPrevious,\n  CarouselNext,\n  useCarousel,\n}\n","type":"registry:ui","target":"components/ui/carousel.tsx"}],"description":"A scrolling row of partner and app logos that loops as visitors watch. Place it under a hero to prove your product fits neatly into an existing stack.","dependencies":["class-variance-authority","embla-carousel-react","lucide-react","radix-ui"]}