# ScrollArea

A clipped container with the styled native scrollbar.

## Scrolling

Scrolling uses native overflow with the shared scrollbar styles from `styles/scroll.css`, no JS-driven scrollbars. Bind `viewportRef` to reach the scrolling element.

## Examples

```svelte
<script lang="ts">
  import ScrollArea from '@qualia-studios/design-ui/components/ScrollArea.svelte';
</script>
```

### Example 1: A fixed-height list

```svelte
<ScrollArea class="demo">
  {#each Array.from({ length: 30 }, (_, i) => i + 1) as n (n)}
    <p>Row {n}</p>
  {/each}
</ScrollArea>
```

---

From the Qualia design guide: https://q-core-3b2732.gitlab.io/components/scrollarea. Every page as markdown: https://q-core-3b2732.gitlab.io/llms.txt
