collapsible-demo.tsx — ui Source File
Architecture documentation for collapsible-demo.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 72157f17_0bce_192a_3eaf_7f61a0f52bcd["collapsible-demo.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 72157f17_0bce_192a_3eaf_7f61a0f52bcd --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 72157f17_0bce_192a_3eaf_7f61a0f52bcd --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 57e86e45_ac6e_7278_be08_9092724e8401["button"] 72157f17_0bce_192a_3eaf_7f61a0f52bcd --> 57e86e45_ac6e_7278_be08_9092724e8401 72adfc27_1b6f_cf8f_62c6_bf495c5c0910["collapsible"] 72157f17_0bce_192a_3eaf_7f61a0f52bcd --> 72adfc27_1b6f_cf8f_62c6_bf495c5c0910 style 72157f17_0bce_192a_3eaf_7f61a0f52bcd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { ChevronsUpDown } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/registry/new-york-v4/ui/collapsible"
export default function CollapsibleDemo() {
const [isOpen, setIsOpen] = React.useState(false)
return (
<Collapsible
open={isOpen}
onOpenChange={setIsOpen}
className="flex w-[350px] flex-col gap-2"
>
<div className="flex items-center justify-between gap-4 px-4">
<h4 className="text-sm font-semibold">
@peduarte starred 3 repositories
</h4>
<CollapsibleTrigger asChild>
<Button variant="ghost" size="icon" className="size-8">
<ChevronsUpDown />
<span className="sr-only">Toggle</span>
</Button>
</CollapsibleTrigger>
</div>
<div className="rounded-md border px-4 py-2 font-mono text-sm">
@radix-ui/primitives
</div>
<CollapsibleContent className="flex flex-col gap-2">
<div className="rounded-md border px-4 py-2 font-mono text-sm">
@radix-ui/colors
</div>
<div className="rounded-md border px-4 py-2 font-mono text-sm">
@stitches/react
</div>
</CollapsibleContent>
</Collapsible>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- collapsible
- lucide-react
- react
Source
Frequently Asked Questions
What does collapsible-demo.tsx do?
collapsible-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in collapsible-demo.tsx?
collapsible-demo.tsx defines 1 function(s): CollapsibleDemo.
What does collapsible-demo.tsx depend on?
collapsible-demo.tsx imports 4 module(s): button, collapsible, lucide-react, react.
Where is collapsible-demo.tsx in the architecture?
collapsible-demo.tsx is located at apps/v4/registry/new-york-v4/examples/collapsible-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free