Scroll area
v0.17.3A bounded region with a thin themed scrollbar, vertical, horizontal or both, with optional fading edges.
Scroll area vertical
Install
npx shadcn add @syncrobotic/scroll-area Also installs: radix-ui, @syncrobotic/cn
Overview
A region that scrolls inside a fixed size, with a scrollbar that matches the theme on every platform.
When to use
- A long log or list inside a card.
- A row of thumbnails that pans sideways.
- A wide table inside a panel.
Use something else
- The whole page: let the page scroll.
- A data table with sorting: Table, which scrolls by itself.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Scroll area horizontal
Scroll area both
Scroll area fade edges
Scroll area camera strip
Scroll area chips
Scroll area thread
Usage rules
- Give it a fixed height (or width) and an aria-label.
- The viewport takes focus so the keyboard can scroll it.
Changelog
- 0.17.32026-11-19Each edge fades only while content is hidden past it (the start faded at scroll 0).
- 0.15.02026-11-19The viewport shows keyboard focus again.
- 0.9.02026-11-17New.