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
  f6df5bfb_2cec_63d7_d2b3_52b59d69bd00["AccordionContent()"]
  5b50b83b_a6c2_6781_2303_1b86355ad513["accordion.tsx"]
  f6df5bfb_2cec_63d7_d2b3_52b59d69bd00 -->|defined in| 5b50b83b_a6c2_6781_2303_1b86355ad513
  style f6df5bfb_2cec_63d7_d2b3_52b59d69bd00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/accordion.tsx lines 63–84

function AccordionContent({
  className,
  children,
  ...props
}: React.ComponentProps<typeof AccordionPrimitive.Content>) {
  return (
    <AccordionPrimitive.Content
      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-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",
          className
        )}
      >
        {children}
      </div>
    </AccordionPrimitive.Content>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free