ScrollArea
Browse content inside a bounded scroll area.
Basic usage
basic.tsx
More examples
advanced.tsx
Usage
Constrain the region with height or maxHeight. orientation controls the axes and scrollbar controls visibility. Wheel, touch and keyboard scrolling use native scrolling behavior.
Overlay scrollbars fade in on hover without taking up content space. The forwarded ref points to the scrolling viewport; style and className apply to the outer wrapper. See Scrollbar for styling and keyboard controls. When content fits or reaches a boundary, the wheel continues scrolling the page.
Types
Import these types for data, callbacks and refs.