Home / File/ accordion-demo.tsx — ui Source File

accordion-demo.tsx — ui Source File

Architecture documentation for accordion-demo.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  57ce8a77_3605_b02d_8028_0454074df5d8["accordion-demo.tsx"]
  1cd97c97_d590_e477_695b_611a7218f02c["accordion"]
  57ce8a77_3605_b02d_8028_0454074df5d8 --> 1cd97c97_d590_e477_695b_611a7218f02c
  style 57ce8a77_3605_b02d_8028_0454074df5d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from "@/registry/new-york/ui/accordion"

export 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&apos; 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>
  )
}

Subdomains

Functions

Dependencies

  • accordion

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/internal/sink/components/accordion-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal/sink/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free