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 aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9["accordion-example.tsx"] da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a 55cf0204_0fcd_5a1a_dd55_dc8692463244["accordion"] aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 --> 55cf0204_0fcd_5a1a_dd55_dc8692463244 381135fe_5f7a_910a_b8a2_691e9756a016["button"] aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 --> 381135fe_5f7a_910a_b8a2_691e9756a016 11818bc0_4ad2_fa77_9175_f5c44c22af5e["card"] aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 --> 11818bc0_4ad2_fa77_9175_f5c44c22af5e de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style aeea2cc4_46f4_ba87_3e70_fbf4ce4112e9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/registry/bases/radix/ui/accordion"
import { Button } from "@/registry/bases/radix/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/bases/radix/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 type="single" collapsible className="mx-auto max-w-lg">
{items.map((item) => (
<AccordionItem key={item.value} value={item.value}>
<AccordionTrigger>{item.trigger}</AccordionTrigger>
<AccordionContent>{item.content}</AccordionContent>
// ... (286 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, ChartRegistry 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/radix/examples/accordion-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free