# ScrollArea

Provides a styled scrollable viewport while preserving native scrolling behavior. Use it to contain long content within a defined region.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { ScrollArea, ScrollBar } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-scrollarea--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/scroll-area), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=296-207)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### ScrollArea

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `fade` | `boolean` | `false` | Dissolves content into the surface at the top and bottom edges while there is more to scroll to. Mask-based, so it works on any background. |

Also takes the props of `@base-ui/react/scroll-area`.

### ScrollBar

Also takes the props of `@base-ui/react/scroll-area`.
