Skip to content
Aback UI

Scroll Area

A focusable, themed scroll container for long lists and panels.

BetaNew shared patternRegistry JSON (opens in a new tab)

Deployments

8 total
  • dpl_8f2

    Production · main@4f2c1a9

    success2m ago
  • dpl_8f1

    Preview · feat/blocks@91ba20c

    success18m ago
  • dpl_8f0

    Production · main@0c7dd13

    failed1h ago
  • dpl_8ef

    Preview · fix/command@aa12b04

    success3h ago
  • dpl_8ee

    Preview · docs/cli@72e91bd

    success5h ago
  • dpl_8ed

    Preview · wip/theme@ca0f2e1

    cancelledyesterday
  • dpl_8ec

    Production · main@b7e40aa

    successyesterday
  • dpl_8eb

    Preview · feat/avatar@1d9c3fe

    success2d ago

Installation

Copy the source with the CLI to own and edit it, or import it from the npm package.

npx aback-ui@latest add scroll-area

Writes components/ui/scroll-area.tsx. First time in this project? Run npx aback-ui@latest init first, as the installation guide shows.

Usage

Import the parts you need from the installed file. The Code tab above has a complete, working example.

tsx
import { ScrollArea } from "@/components/ui/scroll-area";

API reference

Props and composition points for Scroll Area. Native element props pass through.

PropTypeDefaultDescription
scrollbarVisibility"auto" | "always" | "scroll" | "hover""hover"When the custom scrollbar appears. Use always for a container that must advertise overflow at rest.
aria-label / aria-labelledbystringNoneNames the focusable scroll region. Give it a name when the content is a distinct list or panel.
classNamestringNoneSet a height or width; the root clips and the viewport scrolls.

Dependencies: radix-ui, plus the shared @/lib/utils helper.

Accessibility

Semantics, keyboard behavior, and the decisions that keep the component operable.

  • The viewport is focusable, so the region can be scrolled with the keyboard without a pointer.
  • When a name is provided, the viewport becomes a named region landmark. Do not wrap it in another landmark with the same name.
  • The scrollbar thumb uses the published scrollbar tokens and is visible in both themes.
  • Do not put the only copy of essential content in a fixed-height scroller; keep the full content reachable and avoid nested scroll areas.

Used in production

The Aback products whose interfaces shaped this component.

This component is new in Aback UI. It has not shipped in an Aback product yet, so no production use is claimed.