Closed ruru-m07 closed 9 months ago
Hi @ruru-m07, you can set the scrollarea's child height:
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider";
import { ScrollArea } from "@/components/ui/scroll-area";
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<ScrollArea>
<div className="h-screen">{children}</div>
</ScrollArea>
</ThemeProvider>
</body>
</html>
);
}
yes! that's work for me tnks
hey i try to use ScrollArea in my body but it dose'n work
need help. pls 🔥