Scroll area

Loading...

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/scroll-area

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install tailwind-merge

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