Appearance
ScrollArea
Container cuộn có style.
ts
import { ScrollArea } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { ScrollArea } from "@minap/ui";
export function Example() {
return (
<>
<ScrollArea className="h-28 w-full rounded-md border p-2">
{Array.from({ length: 12 }, (_, i) => (
<p key={i} className="text-sm">
Row {i + 1}
</p>
))}
</ScrollArea>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
className | string | — | Đặt chiều cao tường minh |
type | scroll visibility | — | Radix |
Behavior
- ScrollBar