accordion-example.tsx — ui Source File
Architecture documentation for accordion-example.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 109831b8_6d36_384f_fc0c_f16bc28a4f95["accordion-example.tsx"] f56be340_a522_c6f7_dec3_5906873d14c8["example"] 109831b8_6d36_384f_fc0c_f16bc28a4f95 --> f56be340_a522_c6f7_dec3_5906873d14c8 ac4a6b70_221d_5967_f179_42b231850000["accordion"] 109831b8_6d36_384f_fc0c_f16bc28a4f95 --> ac4a6b70_221d_5967_f179_42b231850000 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 109831b8_6d36_384f_fc0c_f16bc28a4f95 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 deffd1e6_798d_b7fd_c687_7ccabc947893["card"] 109831b8_6d36_384f_fc0c_f16bc28a4f95 --> deffd1e6_798d_b7fd_c687_7ccabc947893 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 109831b8_6d36_384f_fc0c_f16bc28a4f95 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 109831b8_6d36_384f_fc0c_f16bc28a4f95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/registry/bases/base/ui/accordion"
import { Button } from "@/registry/bases/base/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/bases/base/ui/card"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function AccordionExample() {
return (
<ExampleWrapper className="w-full max-w-4xl lg:grid-cols-1 2xl:max-w-4xl 2xl:grid-cols-1">
<AccordionBasic />
<AccordionMultiple />
<AccordionWithBorders />
<AccordionInCard />
<AccordionWithDisabled />
</ExampleWrapper>
)
}
function AccordionBasic() {
const items = [
{
value: "item-1",
trigger: "Is it accessible?",
content: "Yes. It adheres to the WAI-ARIA design pattern.",
},
{
value: "item-2",
trigger: "Is it styled?",
content:
"Yes. It comes with default styles that matches the other components' aesthetic.",
},
{
value: "item-3",
trigger: "Is it animated?",
content:
"Yes. It's animated by default, but you can disable it if you prefer.",
},
]
return (
<Example title="Basic">
<Accordion className="mx-auto max-w-lg">
{items.map((item) => (
<AccordionItem key={item.value} value={item.value}>
<AccordionTrigger>{item.trigger}</AccordionTrigger>
<AccordionContent>{item.content}</AccordionContent>
// ... (277 more lines)
Domain
Subdomains
Functions
Dependencies
- accordion
- button
- card
- example
- icon-placeholder
Source
Frequently Asked Questions
What does accordion-example.tsx do?
accordion-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in accordion-example.tsx?
accordion-example.tsx defines 6 function(s): AccordionBasic, AccordionExample, AccordionInCard, AccordionMultiple, AccordionWithBorders, AccordionWithDisabled.
What does accordion-example.tsx depend on?
accordion-example.tsx imports 5 module(s): accordion, button, card, example, icon-placeholder.
Where is accordion-example.tsx in the architecture?
accordion-example.tsx is located at apps/v4/registry/bases/base/examples/accordion-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free