Layout
ScrollArea
A scrolling box with thin scroll bars in the Percent style.
import { ScrollArea } from "@percentsa/ui";Examples
Code
export function ScrollAreaExample() {
return (
<ScrollArea className="h-48 w-64 rounded-field border border-line">
<div className="grid gap-2 p-4">
{Array.from({ length: 20 }, (_, i) => (
<Text key={i} size="sm">
Item {i + 1}
</Text>
))}
</div>
</ScrollArea>
);
}