Home / File/ scroll-area-demo.tsx — ui Source File

scroll-area-demo.tsx — ui Source File

Architecture documentation for scroll-area-demo.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 3 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  a5adbe66_336f_3322_de60_6478fca608d1["scroll-area-demo.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  a5adbe66_336f_3322_de60_6478fca608d1 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  fc9be8c8_1d3e_38bd_b210_d94d04e7d1c3["scroll-area"]
  a5adbe66_336f_3322_de60_6478fca608d1 --> fc9be8c8_1d3e_38bd_b210_d94d04e7d1c3
  b9edc1c7_b7c5_336c_067b_ecb7e26f1bc3["separator"]
  a5adbe66_336f_3322_de60_6478fca608d1 --> b9edc1c7_b7c5_336c_067b_ecb7e26f1bc3
  style a5adbe66_336f_3322_de60_6478fca608d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"
import { ScrollArea } from "@/examples/radix/ui/scroll-area"
import { Separator } from "@/examples/radix/ui/separator"

const tags = Array.from({ length: 50 }).map(
  (_, i, a) => `v1.2.0-beta.${a.length - i}`
)

export function ScrollAreaDemo() {
  return (
    <ScrollArea className="h-72 w-48 rounded-md border">
      <div className="p-4">
        <h4 className="mb-4 text-sm leading-none font-medium">Tags</h4>
        {tags.map((tag) => (
          <React.Fragment key={tag}>
            <div className="text-sm">{tag}</div>
            <Separator className="my-2" />
          </React.Fragment>
        ))}
      </div>
    </ScrollArea>
  )
}

Subdomains

Dependencies

  • react
  • scroll-area
  • separator

Frequently Asked Questions

What does scroll-area-demo.tsx do?
scroll-area-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in scroll-area-demo.tsx?
scroll-area-demo.tsx defines 2 function(s): ScrollAreaDemo, tags.
What does scroll-area-demo.tsx depend on?
scroll-area-demo.tsx imports 3 module(s): react, scroll-area, separator.
Where is scroll-area-demo.tsx in the architecture?
scroll-area-demo.tsx is located at apps/v4/examples/radix/scroll-area-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free