Home / Function/ ButtonAsChild() — ui Function Reference

ButtonAsChild() — ui Function Reference

Architecture documentation for the ButtonAsChild() function in button-as-child.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  518148b7_ab8f_8b2d_13f3_ed7381a94f75["ButtonAsChild()"]
  917e05af_3fc3_5b62_61e9_6840b9b4d2ef["button-as-child.tsx"]
  518148b7_ab8f_8b2d_13f3_ed7381a94f75 -->|defined in| 917e05af_3fc3_5b62_61e9_6840b9b4d2ef
  style 518148b7_ab8f_8b2d_13f3_ed7381a94f75 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/examples/button-as-child.tsx lines 5–11

export default function ButtonAsChild() {
  return (
    <Button asChild>
      <Link href="/login">Login</Link>
    </Button>
  )
}

Subdomains

Frequently Asked Questions

What does ButtonAsChild() do?
ButtonAsChild() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/button-as-child.tsx.
Where is ButtonAsChild() defined?
ButtonAsChild() is defined in deprecated/www/registry/new-york/examples/button-as-child.tsx at line 5.

Analyze Your Own Codebase

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

Try Supermodel Free