JD
Scroll Area
A native, dependency-free scroll container with polished scrollbar styling for dense dashboards and horizontal content lanes.
Preview & Interactive Laboratory
Vertical Incident Feed
Horizontal Release Lanes
Usage & Implementation
<ScrollArea className="h-72 rounded-3xl border border-white/10 bg-background/40 p-4"> <div className="space-y-3">...</div> </ScrollArea>
React / Tailwind
Granular Customization
1
Container
Controls sizing, border treatment, and radius.
className={`className`}2
Orientation
Switches overflow direction between vertical, horizontal, or both axes.
className={`orientation='horizontal'`}3
Surface Variant
Adds outline or glass surface treatments.
className={`variant='glass'`}API Reference (Props)
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | 'vertical' | 'horizontal' | 'both' | 'vertical' | Controls which axis is scrollable. |
| variant | 'default' | 'outline' | 'glass' | 'default' | Applies the base container surface styling. |
| className | string | - | Set height, width, padding, and shell appearance. |