Open GitHub repository
ComponentsScroll Area

Scroll Area

Provides a bounded, consistently styled region for overflowing content.

Installation

bunx @swift-rust/ui add scroll-area

Usage

tsx
1import { ScrollArea } from "@/components/ui/scroll-area";
2 
3<ScrollArea className="h-72 w-56">
4 {items.map((item) => <div key={item.id}>{item.name}</div>)}
5</ScrollArea>