Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Installation
import { ScrollArea, ScrollBar } from "@sourceful-energy/ui"Usage
Examples
Device List
Horizontal Scroll
Fixed Height Container
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "auto" | "always" | "scroll" | "hover" | "hover" | Describes the nature of scrollbar visibility. |
| scrollHideDelay | number | 600 | Delay in ms before hiding scrollbars (for type 'scroll' or 'hover'). |
| className | string | - | Additional CSS classes. |
Accessibility
- Built on Radix UI ScrollArea for consistent behavior
- Keyboard scrolling works natively
- Custom scrollbars maintain accessibility
- Works with screen readers