Component libraryScroll area
Components/Essentials

Scroll area

Pro

A native horizontal, vertical, or two-axis scroll container with optional accessible region labelling and real edge actions.

npx shadcn@latest add @tidal-pro/scroll-area
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/scroll-area

Import components/ui/tidal.css, components/ui/scroll-area.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

children are required consumer-owned content. orientation selects native horizontal, vertical or two-axis overflow. Optional title/description/meta render a compact header; a title, regionLabel or external regionLabelledBy gives the viewport a named region role. The viewport becomes keyboard-focusable only while measured overflow exists unless the consumer supplies an explicit tabIndex. Optional startAction and endAction are native buttons that scroll the real viewport to logical content edges, including RTL. Supplied native button handlers run first and prevention suppresses scrolling and onAction. Actions preserve explicit type/form/attributes/refs while label, controls and native disabled semantics remain component-owned. Root, viewport and content attributes/refs pass through with React 19 callback-ref cleanup; viewport scroll handlers remain native. Optional heading level and footer remain consumer-owned. Reduced motion makes programmatic edge scrolling immediate. The component performs no data mutation, request, routing, analytics, network, storage or persistence action.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.