Home / Function/ AccordionContent() — ui Function Reference

AccordionContent() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  93c1e63e_c5b8_807c_372f_bc1c66734dfa["AccordionContent()"]
  585222a3_8963_7f6c_56b3_8a020f49d831["accordion.tsx"]
  93c1e63e_c5b8_807c_372f_bc1c66734dfa -->|defined in| 585222a3_8963_7f6c_56b3_8a020f49d831
  style 93c1e63e_c5b8_807c_372f_bc1c66734dfa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui/accordion.tsx lines 56–77

function AccordionContent({
  className,
  children,
  ...props
}: AccordionPrimitive.Panel.Props) {
  return (
    <AccordionPrimitive.Panel
      data-slot="accordion-content"
      className="data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm"
      {...props}
    >
      <div
        className={cn(
          "[&_a]:hover:text-foreground h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",
          className
        )}
      >
        {children}
      </div>
    </AccordionPrimitive.Panel>
  )
}

Subdomains

Frequently Asked Questions

What does AccordionContent() do?
AccordionContent() is a function in the ui codebase, defined in apps/v4/examples/base/ui/accordion.tsx.
Where is AccordionContent() defined?
AccordionContent() is defined in apps/v4/examples/base/ui/accordion.tsx at line 56.

Analyze Your Own Codebase

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

Try Supermodel Free