Scroll area

Core

A native scroll container with thin overlay scrollbars and edge fades that appear only when content overflows.

pnpm dlx shadcn@latest add https://wui.alann.works/r/scroll-area.json
Registry item #1
Registry item #2
Registry item #3
Registry item #4
Registry item #5
Registry item #6
Registry item #7
Registry item #8
Registry item #9
Registry item #10

API Reference

PropTypeDefault
childrenReactNode—
orientation"vertical" | "horizontal" | "both"—
fadenumber—
scrollbars"auto" | "always"—
hideDelaynumber—
maxHeightCSSProperties["maxHeight"]—
snapCSSProperties["scrollSnapType"]—
labelstring—
wheelToHorizontalboolean—
viewportClassNamestring—
viewportStyleCSSProperties—
viewportRefRef<HTMLDivElement>—
onScroll(event: UIEvent<HTMLDivElement>) => void—
onEdgeChange(edges: ScrollAreaEdges) => void—
Categories
disclosure