---
title: Scroll Area
description: A native scroll container with custom scrollbars.
links:
doc: https://base-ui.com/react/components/scroll-area#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add scroll-area
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { ScrollArea } from "@/components/ui/scroll-area"
```
```tsx
Long scrollable content goes here...
```
## API Reference
### ScrollArea
Root component. Styled wrapper for `ScrollArea.Root` from Base UI. Automatically includes both horizontal and vertical scrollbars.
| Prop | Type | Default |
| ------------ | --------- | ------- |
| `scrollFade` | `boolean` | `false` |
### ScrollBar
Scrollbar track with built-in thumb. Styled wrapper for `ScrollArea.Scrollbar` from Base UI.
| Prop | Type | Default |
| ------------- | ---------------------------- | ------------ |
| `orientation` | `"horizontal" \| "vertical"` | `"vertical"` |
## Examples
### Both Scrollbars
### Scroll Fade
Use `scrollFade` to mask the viewport edges so content subtly fades in and out as you scroll.