Theme
ScrollArea
Custom scrollable area with styled scrollbars
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { ScrollArea } from '@dryui/ui';
</script>
<ScrollArea>Content</ScrollArea>Import options
Root package
ts
import { ScrollArea } from '@dryui/ui'Per-component subpath
ts
import { ScrollArea } from '@dryui/ui/scroll-area'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Vertical Scroll Area
svelte
<div class="scroll-frame scroll-frame--vertical">
<ScrollArea>
<div class="scroll-content">
Long content that scrolls vertically...
</div>
</ScrollArea>
</div>Horizontal Scroll Area
svelte
<div class="scroll-frame scroll-frame--horizontal">
<ScrollArea orientation="horizontal">
<div class="scroll-content scroll-content--nowrap">
Long horizontal content that scrolls...
</div>
</ScrollArea>
</div>Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
orientation | verticalhorizontalboth | — | — | — |
children | Snippet | — | ✓ | — |
Forwards <div> attributes via rest props. Common examples: id, style, role.