Black Friday · Save 40% on Intent UI Design licenses with code UI2026.· 4 days left

Scroll area

Loading...

Installation

Add the component with the CLI.

npx shadcn@latest add @intentui/scroll-area

Manual installation

Install the dependencies, then copy the component source into your project.

npm install cn

Examples

By default, the orientation is set to both, but you can change it to horizontal or vertical.

Vertical

Loading...

Horizontal

Loading...

Fade

Add fade effects to the edges of the scroll area for visual cues.

Loading...

Component API

ScrollArea

ScrollArea extends the native <div> element.

classNamestring
orientationScrollAreaOrientation
Default: both
scrollbarGutterboolean
Default: false
scrollFadeboolean
Default: false
Design