MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / useCarousel

Function useCarousel

apps/start/src/components/ui/carousel.tsx:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30const CarouselContext = React.createContext<CarouselContextProps | null>(null);
31
32function useCarousel() {
33 const context = React.useContext(CarouselContext);
34
35 if (!context) {
36 throw new Error('useCarousel must be used within a <Carousel />');
37 }
38
39 return context;
40}
41
42const Carousel = React.forwardRef<
43 HTMLDivElement,

Callers 1

carousel.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected