# Scroll Shadow

> Scroll container with edge fade shadows.

Registry name: `scroll-shadow`. HTML docs: https://ui.anuragroy.dev/component/scroll-shadow.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/scroll-shadow.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/scroll-shadow.json`.

Registry JSON: https://ui.anuragroy.dev/r/scroll-shadow.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/scroll-shadow.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { ScrollShadow } from "@/components/ui/scroll-shadow"
```

## Usage

```tsx
import { ScrollShadow } from "@/components/ui/scroll-shadow"

export function Example() {
  return (
    <ScrollShadow className="h-40">
      {Array.from({ length: 16 }, (_, index) => (
        <p key={index}>Scrollable row {index + 1}</p>
      ))}
    </ScrollShadow>
  )
}
```

## API

### ScrollShadow

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `orientation` | "vertical" \| "horizontal" | "vertical" |  |
| `size` | number | 40 | Fade length in pixels. |

## See also

- [HTML page](https://ui.anuragroy.dev/component/scroll-shadow): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/scroll-shadow.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
