npm install @thrivecart/uiyarn add @thrivecart/uipnpm add @thrivecart/uibun add @thrivecart/uiimport { ScrollArea, ScrollBar } from '@thrivecart/ui';Vertical scroll area with content
<ScrollArea className="h-48 w-full rounded-lg border p-4">
{Array.from({ length: 20 }, (_, i) => (
<div key={i} className="py-2 border-b last:border-0">
Item {i + 1}
</div>
))}
</ScrollArea>Always define a max-height or height for the scroll area so scrolling activates.
Use visual cues (shadows, fade) to hint that content extends beyond the visible area.
Multiple nested scrollable areas create confusing interaction patterns.
If content always fits, don't wrap it in a scroll area.