Scroll Area
stableA container with custom, themeable scrollbars.
Basic usage
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
Item 12
Item 13
Item 14
Item 15
Item 16
Item 17
Item 18
Item 19
Item 20
Item 21
Item 22
Item 23
Item 24
Item 25
Item 26
Item 27
Item 28
Item 29
Item 30
Examples
Horizontal scroll
Combine ScrollArea with a wide inner element for horizontal scrolling.
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Long activity feed
ScrollArea keeps long content usable with themeable scrollbars.
Workspace 1Healthy
Workspace 2Review
Workspace 3Blocked
Workspace 4Queued
Workspace 5Healthy
Workspace 6Review
Workspace 7Blocked
Workspace 8Queued
Workspace 9Healthy
Workspace 10Review
Workspace 11Blocked
Workspace 12Queued
Workspace 13Healthy
Workspace 14Review
Workspace 15Blocked
Workspace 16Queued
Workspace 17Healthy
Workspace 18Review
Workspace 19Blocked
Workspace 20Queued
Workspace 21Healthy
Workspace 22Review
Workspace 23Blocked
Workspace 24Queued
Features
- hover / scroll / always modes.
- Cross-browser consistency.
Installation
bash
pnpm dlx structyl add scroll-areaAPI Reference
ScrollArea.Root
A container with custom scrollbars.
| Prop | Type | Default |
|---|---|---|
| type | 'auto' | 'always' | 'scroll' | 'hover'When scrollbars appear. | 'hover' |
| scrollHideDelay | numberDelay before hiding scrollbars (ms). | 600 |
ScrollArea.Scrollbar
A scrollbar track.
| Prop | Type | Default |
|---|---|---|
| orientation | 'horizontal' | 'vertical'Scrollbar axis. | 'vertical' |