Skip to content
Cuelark UI
Display

Scroll Area

Thin custom scrollbars with edge fades.

A scroll area gives a container slim, consistent scrollbars over native scrolling, so keyboard, touch and wheel all still work. Optional edge fades signal that there is more.

Preview

Releases

v1.40.0
v1.39.0
v1.38.0
v1.37.0
v1.36.0
v1.35.0
v1.34.0
v1.33.0
v1.32.0
v1.31.0
v1.30.0
v1.29.0
v1.28.0
v1.27.0
v1.26.0
v1.25.0
v1.24.0
v1.23.0
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.0
v1.17.0
v1.16.0
v1.15.0
v1.14.0
v1.13.0
v1.12.0
v1.11.0
v1.10.0
v1.9.0
v1.8.0
v1.7.0
v1.6.0
v1.5.0
v1.4.0
v1.3.0
v1.2.0
v1.1.0

Installation

pnpm dlx shadcn@latest add https://ui.cuelark.com/r/scroll-area.json

The CLI also installs the Cuelark theme tokens. With the @cuelark namespace configured, use @cuelark/scroll-area.

Usage

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

<ScrollArea fade className="h-64">…</ScrollArea>

API reference

ScrollArea

PropTypeDefaultDescription
fadebooleanfalseFade the scroll edges.
orientation"vertical" | "horizontal" | "both""vertical"Scroll axis.

ScrollBar

Accessibility

  • Native scrolling underneath; the viewport is focusable for keyboard scrolling.

FAQ

Also searched as: react scroll area · custom scrollbar · shadcn scroll area · scrollable container · radix scroll area