Home / Function/ ScrollAreaHorizontalDemo() — ui Function Reference

ScrollAreaHorizontalDemo() — ui Function Reference

Architecture documentation for the ScrollAreaHorizontalDemo() function in scroll-area-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d82422a5_c1db_f075_26eb_48f1d4ed3d57["ScrollAreaHorizontalDemo()"]
  3c4daf4e_6ff4_d939_fe82_170a7c3a65af["scroll-area-demo.tsx"]
  d82422a5_c1db_f075_26eb_48f1d4ed3d57 -->|defined in| 3c4daf4e_6ff4_d939_fe82_170a7c3a65af
  style d82422a5_c1db_f075_26eb_48f1d4ed3d57 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/scroll-area-demo.tsx lines 53–80

function ScrollAreaHorizontalDemo() {
  return (
    <ScrollArea className="w-full max-w-96 rounded-md border p-4">
      <div className="flex gap-4">
        {works.map((artwork) => (
          <figure key={artwork.artist} className="shrink-0">
            <div className="overflow-hidden rounded-md">
              <Image
                src={artwork.art}
                alt={`Photo by ${artwork.artist}`}
                className="aspect-[3/4] h-fit w-fit object-cover"
                width={300}
                height={400}
              />
            </div>
            <figcaption className="text-muted-foreground pt-2 text-xs">
              Photo by{" "}
              <span className="text-foreground font-semibold">
                {artwork.artist}
              </span>
            </figcaption>
          </figure>
        ))}
      </div>
      <ScrollBar orientation="horizontal" />
    </ScrollArea>
  )
}

Subdomains

Frequently Asked Questions

What does ScrollAreaHorizontalDemo() do?
ScrollAreaHorizontalDemo() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/scroll-area-demo.tsx.
Where is ScrollAreaHorizontalDemo() defined?
ScrollAreaHorizontalDemo() is defined in apps/v4/app/(internal)/sink/components/scroll-area-demo.tsx at line 53.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free