Home / Function/ ScrollAreaHorizontal() — ui Function Reference

ScrollAreaHorizontal() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  126e529f_914c_c02d_dc4d_e162ce1a11a1["ScrollAreaHorizontal()"]
  a6c63604_98c4_7677_7324_5fd8bdb3dc64["scroll-area-example.tsx"]
  126e529f_914c_c02d_dc4d_e162ce1a11a1 -->|defined in| a6c63604_98c4_7677_7324_5fd8bdb3dc64
  style 126e529f_914c_c02d_dc4d_e162ce1a11a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/scroll-area-example.tsx lines 57–86

function ScrollAreaHorizontal() {
  return (
    <Example title="Horizontal">
      <ScrollArea className="mx-auto 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>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does ScrollAreaHorizontal() do?
ScrollAreaHorizontal() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/scroll-area-example.tsx.
Where is ScrollAreaHorizontal() defined?
ScrollAreaHorizontal() is defined in apps/v4/registry/bases/base/examples/scroll-area-example.tsx at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free