Home / File/ collapsible-basic.tsx — ui Source File

collapsible-basic.tsx — ui Source File

Architecture documentation for collapsible-basic.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  cb4ae259_ca9f_cc11_f870_c98269219d36["collapsible-basic.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  cb4ae259_ca9f_cc11_f870_c98269219d36 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e["card"]
  cb4ae259_ca9f_cc11_f870_c98269219d36 --> a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e
  a519b2f3_5e0e_a053_b4d5_e1f3786d0de2["collapsible"]
  cb4ae259_ca9f_cc11_f870_c98269219d36 --> a519b2f3_5e0e_a053_b4d5_e1f3786d0de2
  e27da0c9_5512_f07d_2bb8_b6ec5c296f4b["__lucide__"]
  cb4ae259_ca9f_cc11_f870_c98269219d36 --> e27da0c9_5512_f07d_2bb8_b6ec5c296f4b
  style cb4ae259_ca9f_cc11_f870_c98269219d36 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import { Card, CardContent } from "@/examples/radix/ui/card"
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from "@/examples/radix/ui/collapsible"

import { ChevronDownIcon } from "@/registry/icons/__lucide__"

export function CollapsibleBasic() {
  return (
    <Card className="mx-auto w-full max-w-sm">
      <CardContent>
        <Collapsible className="data-[state=open]:bg-muted rounded-md">
          <CollapsibleTrigger asChild>
            <Button variant="ghost" className="group w-full">
              Product details
              <ChevronDownIcon className="ml-auto group-data-[state=open]:rotate-180" />
            </Button>
          </CollapsibleTrigger>
          <CollapsibleContent className="flex flex-col items-start gap-2 p-2.5 pt-0 text-sm">
            <div>
              This panel can be expanded or collapsed to reveal additional
              content.
            </div>
            <Button size="xs">Learn More</Button>
          </CollapsibleContent>
        </Collapsible>
      </CardContent>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • __lucide__
  • button
  • card
  • collapsible

Frequently Asked Questions

What does collapsible-basic.tsx do?
collapsible-basic.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in collapsible-basic.tsx?
collapsible-basic.tsx defines 1 function(s): CollapsibleBasic.
What does collapsible-basic.tsx depend on?
collapsible-basic.tsx imports 4 module(s): __lucide__, button, card, collapsible.
Where is collapsible-basic.tsx in the architecture?
collapsible-basic.tsx is located at apps/v4/examples/radix/collapsible-basic.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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