chore: update to Fumadocs 15.7 (#4154)

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
This commit is contained in:
Fuma Nama
2025-08-22 19:00:45 -07:00
committed by Alex Yang
parent 5af2fb4fa6
commit d26d45741a
32 changed files with 6367 additions and 4565 deletions

View File

@@ -27,6 +27,20 @@ function ScrollArea({
</ScrollAreaPrimitive.Root>
);
}
const ScrollViewport = React.forwardRef<
React.ComponentRef<typeof ScrollAreaPrimitive.Viewport>,
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Viewport>
>(({ className, children, ...props }, ref) => (
<ScrollAreaPrimitive.Viewport
ref={ref}
className={cn("size-full rounded-[inherit]", className)}
{...props}
>
{children}
</ScrollAreaPrimitive.Viewport>
));
ScrollViewport.displayName = ScrollAreaPrimitive.Viewport.displayName;
function ScrollBar({
className,
@@ -55,4 +69,4 @@ function ScrollBar({
);
}
export { ScrollArea, ScrollBar };
export { ScrollArea, ScrollBar, ScrollViewport };