Skip to content
Drivn logoDrivn

Scroll Area

Themed scrollable container with custom scrollbar styling.

Preview

v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v1.6.0
v1.7.0
v1.8.0
v1.9.0
v1.10.0
v1.11.0
v1.12.0

Installation

npx drivn add scroll-area

Usage

1import { ScrollArea } from "@/components/ui/scroll-area"
2
3export default function Page() {
4 return (
5 <ScrollArea className="h-48">
6 {/* Scrollable content */}
7 </ScrollArea>
8 )
9}

Horizontal

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6
Card 7
Card 8

API Reference

PropTypeDefaultDescription
orientation"vertical" | "horizontal""vertical"Scroll direction
classNamestringSet height or max-height to enable scrolling