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
  07d46e0c_c92d_d846_c4d4_6d3a480fa42e["ScrollAreaHorizontalDemo()"]
  f7b76b02_20d9_03ba_ce0a_c6e279135550["scroll-area-horizontal-demo.tsx"]
  07d46e0c_c92d_d846_c4d4_6d3a480fa42e -->|defined in| f7b76b02_20d9_03ba_ce0a_c6e279135550
  style 07d46e0c_c92d_d846_c4d4_6d3a480fa42e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/scroll-area-horizontal-demo.tsx lines 26–53

export default function ScrollAreaHorizontalDemo() {
  return (
    <ScrollArea className="w-96 rounded-md border whitespace-nowrap">
      <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="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/registry/new-york-v4/examples/scroll-area-horizontal-demo.tsx.
Where is ScrollAreaHorizontalDemo() defined?
ScrollAreaHorizontalDemo() is defined in apps/v4/registry/new-york-v4/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