Data & feedback@neumorphism-ui/scroll-area

Scroll Area

Uses overflow-auto and the native scrollbar to preserve wheel, touch, keyboard, and browser accessibility behavior. The ScrollBar export is a hidden placeholder for shadcn composition compatibility.

@neumorphism-ui/scroll-area
Registry JSON

Preview

NVDAAccessibilityReady
DialogOverlayReady
Data tableDataReview
SliderInputReady
TooltipOverlayReady
CalendarCompositePlanned
CommandCompositePlanned

Installation

Installation: scroll-areanpx shadcn@latest add @neumorphism-ui/scroll-area

The CLI resolves npm dependencies, base tokens, utilities, and component source in order.

New to this Registry? Set up the namespace before continuing.

Usage

Import

Scroll Area import code
import {
  ScrollArea,
  ScrollBar,
} from "@/components/ui/scroll-area"

Example

Scroll Area usage code
<ScrollArea
  className="h-64 p-4"
  tabIndex={0}
  aria-label="Recent activity"
>
  {activities.map((activity) => (
    <article key={activity.id}>{activity.title}</article>
  ))}
  <ScrollBar orientation="vertical" />
</ScrollArea>

API Reference

ComponentPropTypeDefaultDescription
ScrollAreaclassNamestring—Constrains height or width to create an overflow region.
ScrollAreatabIndexnumber—Provides a keyboard scrolling entry point when no focusable child is present.
ScrollAreaaria-label / aria-labelledbystring—Names the content when it is an independently navigable region.
ScrollBarorientation"horizontal" | "vertical""vertical"A direction data attribute for the compatibility placeholder.

Accessibility

  • 01

    Native overflow does not intercept screen-reader or touch scrolling behavior.

  • 02

    If the region contains no links or buttons, use tabIndex=0 so keyboard users can enter it.

  • 03

    ScrollBar is a visually hidden compatibility placeholder; the browser scrollbar performs the actual scrolling.