We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b9223c commit 518292eCopy full SHA for 518292e
packages/ui/src/components/carousel/context.ts
@@ -1,5 +1,4 @@
1
'use client';
2
-
3
import { createContext, useContext } from 'react';
4
5
import type { CarouselContextProps } from './types';
@@ -10,7 +9,7 @@ export function useCarousel() {
10
9
const context = useContext(CarouselContext);
11
12
if (!context) {
13
- throw new Error('useCarousel must be used within a <Carousel />');
+ throw new Error('useCarousel must be used within a <CarouselRoot />');
14
}
15
16
return context;
0 commit comments