Skip to content
Discussion options

You must be logged in to vote

Thank you for your technical input. Your answer was helpful as a starting point but not sufficient on its own. After further analysis and testing, with the assistance of AI tools, it turned out that modifying the original shadcn/ui component was required. Below is the updated code.

"use client";

import * as React from "react";
import useEmblaCarousel, {
  type UseEmblaCarouselType,
} from "embla-carousel-react";
import { ArrowLeft, ArrowRight } from "lucide-react";

import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { useLocale } from "next-intl";

type CarouselApi = UseEmblaCarouselType[1];
type UseCarouselParameters = Parameters<typeof useEmblaCar…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@muhammad-sy1
Comment options

Answer selected by muhammad-sy1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants