accordion-demo.tsx — ui Source File
Architecture documentation for accordion-demo.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 625561ff_5c33_f105_3a48_002bd73014ea["accordion-demo.tsx"] 1cd97c97_d590_e477_695b_611a7218f02c["accordion"] 625561ff_5c33_f105_3a48_002bd73014ea --> 1cd97c97_d590_e477_695b_611a7218f02c style 625561ff_5c33_f105_3a48_002bd73014ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/registry/new-york/ui/accordion"
export default function AccordionDemo() {
return (
<Accordion type="single" collapsible className="w-full">
<AccordionItem value="item-1">
<AccordionTrigger>Is it accessible?</AccordionTrigger>
<AccordionContent>
Yes. It adheres to the WAI-ARIA design pattern.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>Is it styled?</AccordionTrigger>
<AccordionContent>
Yes. It comes with default styles that matches the other
components' aesthetic.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>Is it animated?</AccordionTrigger>
<AccordionContent>
Yes. It's animated by default, but you can disable it if you prefer.
</AccordionContent>
</AccordionItem>
</Accordion>
)
}
Domain
Subdomains
Functions
Dependencies
- accordion
Source
Frequently Asked Questions
What does accordion-demo.tsx do?
accordion-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 accordion-demo.tsx?
accordion-demo.tsx defines 1 function(s): AccordionDemo.
What does accordion-demo.tsx depend on?
accordion-demo.tsx imports 1 module(s): accordion.
Where is accordion-demo.tsx in the architecture?
accordion-demo.tsx is located at deprecated/www/registry/new-york/examples/accordion-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free