extend-hq

Scroll Area

Component 13

About

A scrollable container with custom, styled scrollbars built on Base UI.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scroll Area to your project and fits it to your theme.

Code

How Scroll Area is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { ScrollArea } from "@/components/ui/scroll-area";
export default function Default() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <ScrollArea className="h-72 w-[360px] rounded-xl border bg-card p-5 text-base shadow-sm">
        {Array.from({ length: 20 }).map((_, i) => (
          <p key={i} className="border-b py-3 last:border-b-0">Row {i + 1}</p>
        ))}
      </ScrollArea>
    </div>
  );
}

Dependencies

More by extend-hq

View all
  • PDF Viewer

    PDF Viewer

    441
  • Excel Viewer

    Excel Viewer

    325
  • File Upload

    File Upload

    268
  • File System (Finder)

    File System (Finder)

    152
  • CSV / TSV Viewer

    CSV / TSV Viewer

    80
  • File Upload

    File Upload

    62
  • Select

    Select

    10
  • Card

    Card

    7