Launch sale — 60% off Pro
Contact
Scroll AreaAdvanced

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Scroll Area - With ResizableHandle

ScrollArea integrated with resizable panels for split-pane layouts with independent scrolling in each adjustable section built with shadcn/ui

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


IDE-style interfaces need resizable panels—users want to adjust sidebar width without losing file list scroll position or preview pane content. This React pattern combines shadcn/ui's ResizablePanel with ScrollArea in each section for independent scrolling. Built with Radix UI, the ResizableHandle with withHandle prop provides drag affordance, minSize prevents panels from collapsing too small, and flex-1 ScrollAreas fill available space. Perfect for code editors, file explorers, email clients, or any interface requiring user-adjustable layouts with scrollable content.

Files

Preview

File Content

Select a file from the list to view its contents here. The panel width can be adjusted by dragging the resize handle.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

Pattern created by @haydenbleasel

Installation

Questions you might have