Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Basic ScrollArea

Basic vertical ScrollArea for containing long text content within fixed-height containers like terms of service or documentation built with shadcn/ui

Long legal text and documentation make pages infinitely long—nobody scrolls that far. This React ScrollArea constrains content to a fixed height (h-72) with automatic vertical scrolling when content overflows. Built with shadcn/ui and Radix UI, the pattern provides styled scrollbars matching your theme, smooth scrolling behavior, and maintains keyboard accessibility. Perfect for terms of service, privacy policies, changelogs, help documentation, or any text-heavy content that shouldn't dominate your layout.

Basic ScrollArea preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.