Components

Scroll Area

Bordered, max-height scroll region for long lists and panels—aligned with shadcn scroll-area ergonomics.

Loading...

Installation

Install the registry item directly, then add any package dependencies if you are setting the component up manually.

1

Install the component

Run the registry command below to add scroll-area to your project.

watermelon add scroll-area
2

Import the component

Import Scroll Area from your local UI registry output.

Import

import { ScrollArea } from "@/components/ui/scroll-area";

Import

Import

import { ScrollArea } from "@/components/ui/scroll-area";

Usage

Set maxHeight to cap the viewport; content scrolls inside the chrome.

Basic

Loading...

API Reference

ScrollArea wraps a vertical ScrollView on native and a scrollable div stack on the platform preview. Pass standard scroll props through on native.