Home / Function/ ScrollAreaHorizontalDemo() — ui Function Reference

ScrollAreaHorizontalDemo() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0395f07e_18e0_3e04_c8be_49b77c7aa1f1["ScrollAreaHorizontalDemo()"]
  9500072e_b6c6_3845_41b8_a427b94db3d7["scroll-area-horizontal-demo.tsx"]
  0395f07e_18e0_3e04_c8be_49b77c7aa1f1 -->|defined in| 9500072e_b6c6_3845_41b8_a427b94db3d7
  style 0395f07e_18e0_3e04_c8be_49b77c7aa1f1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/examples/scroll-area-horizontal-demo.tsx lines 26–53

export default function ScrollAreaHorizontalDemo() {
  return (
    <ScrollArea className="w-96 whitespace-nowrap rounded-md border">
      <div className="flex w-max space-x-4 p-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="pt-2 text-xs text-muted-foreground">
              Photo by{" "}
              <span className="font-semibold text-foreground">
                {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 deprecated/www/registry/default/examples/scroll-area-horizontal-demo.tsx.
Where is ScrollAreaHorizontalDemo() defined?
ScrollAreaHorizontalDemo() is defined in deprecated/www/registry/default/examples/scroll-area-horizontal-demo.tsx at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free