Home / Function/ AccordionTrigger() — ui Function Reference

AccordionTrigger() — ui Function Reference

Architecture documentation for the AccordionTrigger() function in accordion.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  45477812_4435_d7b3_4a3c_60ced08bdafd["AccordionTrigger()"]
  35df91d2_d08e_1040_68de_73fed32df9e3["accordion.tsx"]
  45477812_4435_d7b3_4a3c_60ced08bdafd -->|defined in| 35df91d2_d08e_1040_68de_73fed32df9e3
  style 45477812_4435_d7b3_4a3c_60ced08bdafd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/accordion.tsx lines 26–40

>(({ className, children, ...props }, ref) => (
  <AccordionPrimitive.Header className="flex">
    <AccordionPrimitive.Trigger
      ref={ref}
      className={cn(
        "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
        className
      )}
      {...props}
    >
      {children}
      <ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />
    </AccordionPrimitive.Trigger>
  </AccordionPrimitive.Header>
))

Subdomains

Frequently Asked Questions

What does AccordionTrigger() do?
AccordionTrigger() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/accordion.tsx.
Where is AccordionTrigger() defined?
AccordionTrigger() is defined in deprecated/www/registry/new-york/ui/accordion.tsx at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free