Home / Function/ ComponentSource() — ui Function Reference

ComponentSource() — ui Function Reference

Architecture documentation for the ComponentSource() function in component-source.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fc160de4_5e11_6936_60fd_4ad5eeef6d30["ComponentSource()"]
  804febbf_8da0_1127_a04d_442ab22b49db["component-source.tsx"]
  fc160de4_5e11_6936_60fd_4ad5eeef6d30 -->|defined in| 804febbf_8da0_1127_a04d_442ab22b49db
  style fc160de4_5e11_6936_60fd_4ad5eeef6d30 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/components/component-source.tsx lines 12–25

export function ComponentSource({
  children,
  className,
  ...props
}: ComponentSourceProps) {
  return (
    <CodeBlockWrapper
      expandButtonTitle="Expand"
      className={cn("my-6 overflow-hidden rounded-md", className)}
    >
      {children}
    </CodeBlockWrapper>
  )
}

Subdomains

Frequently Asked Questions

What does ComponentSource() do?
ComponentSource() is a function in the ui codebase, defined in deprecated/www/components/component-source.tsx.
Where is ComponentSource() defined?
ComponentSource() is defined in deprecated/www/components/component-source.tsx at line 12.

Analyze Your Own Codebase

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

Try Supermodel Free