Skip to content

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 / APITypeDefaultNotes
classNamestring—Đặt chiều cao tường minh
typescroll visibility—Radix

Behavior ​

  • ScrollBar

MINAP UI — Soft Periwinkle light, Mobile-First